void Aggro(Unit* pWho) { InitSentinelsNear(pWho); if (!m_uiMyAbility) { std::vector<uint32> abilities = CreateAbilityList(); for (GuidList::const_iterator itr = m_lAssistList.begin(); itr != m_lAssistList.end(); ++itr) { if (Creature* pBuddy = m_creature->GetMap()->GetCreature(*itr)) { if (pBuddy->isDead()) pBuddy->Respawn(); ((npc_anubisath_sentinelAI*)pBuddy->AI())->SetAbility(abilities); } } } }
void Aggro(Unit* pWho) { SetAbility(); InitSentinelsNear(pWho); }