Core/Misc: Don't allow non-combat pets to trigger hunter traps

This commit is contained in:
Shocker
2011-06-15 23:56:47 +03:00
parent 50dbb8c8a5
commit ee717ad1ee
@@ -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;