mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 17:09:08 +00:00
[Avoid aoe] Fix friendly game object
This commit is contained in:
@@ -59,6 +59,11 @@ GuidVector NearestTrapWithDamageValue::Calculate()
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Unit* owner = go->GetOwner();
|
||||
if (owner && owner->IsFriendlyTo(bot))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
const GameObjectTemplate* goInfo = go->GetGOInfo();
|
||||
if (!goInfo)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user