Core/Misc: Don't allow non-combat pets to trigger hunter traps
This commit is contained in:
@@ -791,6 +791,9 @@ namespace Trinity
|
||||
if (!u->isAlive())
|
||||
return false;
|
||||
|
||||
if (u->GetCreatureType() == CREATURE_TYPE_NON_COMBAT_PET)
|
||||
return false;
|
||||
|
||||
if (u->GetTypeId() == TYPEID_UNIT && ((Creature*)u)->isTotem())
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user