Core/Creature: Remove not needed flag for UNIT_FLAG_IMMUNE_TO_NPC

closes 14744
This commit is contained in:
mik1893
2015-05-27 17:28:36 +02:00
parent a295e96c55
commit e7484151d5

View File

@@ -1370,9 +1370,6 @@ bool Creature::CanStartAttack(Unit const* who, bool force) const
if (IsCivilian())
return false;
if (HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_NPC))
return false;
// Do not attack non-combat pets
if (who->GetTypeId() == TYPEID_UNIT && who->GetCreatureType() == CREATURE_TYPE_NON_COMBAT_PET)
return false;