Ejemplo n.º 1
0
    void Reset()
    {
        Intro = true;
        Next = 0;
        Add1GUID = 0;
        Add2GUID = 0;
        IntroTimer = 20000;
        Holy_Light_Timer = 30000;
        Cleanse_Timer = 10000;
        HammerOfJustice_Timer = 60000;
        HolyShield_Timer = 240000;
        DevotionAura_Timer = 3000;
        Consecration_Timer = 8000;
        me->SetReactState(REACT_PASSIVE);
        me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
        me->Mount(SKARLOC_MOUNT_MODEL);
        SummonGuards();
        me->GetMotionMaster()->MovePoint(0, 2047.90f, 254.85f, 62.822f);

        if (Creature *Thrall = (Creature*)(Unit::GetUnit((*me), pInstance->GetData64(DATA_THRALL))))
            ThrallinGUID = Thrall->GetGUID();
        else if (Creature* Thrall = me->FindNearestCreature(17876, 100.0f, true)) 
            ThrallinGUID = Thrall->GetGUID();

    }
Ejemplo n.º 2
0
 void InitializeAI() override
 {
     if (!me->isDead())
     {
         Reset();
         SummonGuards();
     }
 }
 void InitializeAI() override
 {
     if (!me->isDead() && instance->GetBossState(BOSS_ANUBREKHAN) != DONE)
     {
         Reset();
         SummonGuards();
     }
 }
Ejemplo n.º 4
0
 void JustReachedHome() override
 {
     _JustReachedHome();
     SummonGuards();
 }