Swarm pets will no longer assist owners if special ability '34' IMMUNE_AGGRO

is set.
This commit is contained in:
KayenEQ 2014-11-23 23:44:14 -05:00
parent 3ca282abfa
commit f4d024fd47

View File

@ -3652,7 +3652,8 @@ void EntityList::AddTempPetsToHateList(Mob *owner, Mob* other, bool bFrenzy)
NPC* n = it->second;
if (n->GetSwarmInfo()) {
if (n->GetSwarmInfo()->owner_id == owner->GetID()) {
n->CastToNPC()->hate_list.Add(other, 0, 0, bFrenzy);
if (!n->GetSpecialAbility(IMMUNE_AGGRO))
n->hate_list.Add(other, 0, 0, bFrenzy);
}
}
++it;