void MoveInLineOfSight(Unit* pWho) override { // don't attack anything during the Ayamiss encounter if (m_pInstance) { if (m_pInstance->GetData(TYPE_AYAMISS) == IN_PROGRESS) return; } ScriptedAI::MoveInLineOfSight(pWho); }
void UpdateAI(const uint32 /*uiDiff*/) override { if (m_pInstance) { if (m_pInstance->GetData(TYPE_AYAMISS) == IN_PROGRESS) return; } if (!m_creature->SelectHostileTarget() || !m_creature->getVictim()) return; DoMeleeAttackIfReady(); }