Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
    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();
    }