Beispiel #1
0
 void AIUpdate() override
 {
     if (getCreature()->getHealthPct() <= 15 && getScriptPhase() == 1)
     {
         sendDBChatMessage(2295);     // Nefarius' hate has made me stronger than ever before. You should have fled, while you could, mortals! The fury of Blackrock courses through my veins!
         setScriptPhase(2);
     }
 }
    void SummonElementalWave()
    {
        sendDBChatMessage(SAY_DARKW_SYNTH_01);

        getCreature()->castSpell(getCreature(), summonFireEle->mSpellInfo, true);
        getCreature()->castSpell(getCreature(), summonFrostEle->mSpellInfo, true);
        getCreature()->castSpell(getCreature(), summonArcaneEle->mSpellInfo, true);
        getCreature()->castSpell(getCreature(), summonShadowEle->mSpellInfo, true);
    }
    //case for scriptPhase
    void AIUpdate() override
    {
        if (getCreature()->GetHealthPct() <= 40 && !mCalledForHelp)
        {
            sendDBChatMessage(4871);      // Heal me, quickly!
            mCalledForHelp = true;
        }

        if (getCreature()->GetHealthPct() <= 20 && !_retaliation)
        {
            _retaliation = true;
            getCreature()->setAttackTimer(1500, false);
            _castAISpell(mRetaliation);
        }
    }
Beispiel #4
0
 void OnTargetDied(Unit* /*mTarget*/) override
 {
     sendDBChatMessage(2296);     // Forgive me, your death only adds to my failure.
 }
Beispiel #5
0
 void OnCombatStart(Unit* /*mTarget*/) override
 {
     sendDBChatMessage(2287);     // None of your kind should be here. You have doomed only yourselves!
 }
 void OnCombatStop(Unit* /*pTarget*/) override
 {
     if (isAlive())
         sendDBChatMessage(4862);     // I am victorious!
 }