From f4d024fd478da28af51e01fb1e11c701ca766250 Mon Sep 17 00:00:00 2001 From: KayenEQ Date: Sun, 23 Nov 2014 23:44:14 -0500 Subject: [PATCH] Swarm pets will no longer assist owners if special ability '34' IMMUNE_AGGRO is set. --- zone/entity.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zone/entity.cpp b/zone/entity.cpp index ed5b99219..a17bf9317 100644 --- a/zone/entity.cpp +++ b/zone/entity.cpp @@ -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;