Example #1
0
 void Reset()
 {
     _Reset();
     if (instance)
         instance->DoStopTimedAchievement(ACHIEVEMENT_TIMED_TYPE_EVENT, ACHIEV_MAKE_QUICK_WERK_OF_HIM_STARTING_EVENT);
     SetImmuneToDeathGrip();
 }
Example #2
0
        void Reset()
        {
            _Reset();

            if (Creature *pFeugen = me->GetCreature(*me, instance->GetData64(DATA_FEUGEN)))
            {
                pFeugen->Respawn(true);
                checkFeugenAlive = pFeugen->isAlive();
            }

            if (Creature *pStalagg = me->GetCreature(*me, instance->GetData64(DATA_STALAGG)))
            {
                pStalagg->Respawn(true);
                checkStalaggAlive = pStalagg->isAlive();
            }

            if (!checkFeugenAlive && !checkStalaggAlive)
            {
                me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE | UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_STUNNED);
                me->SetReactState(REACT_AGGRESSIVE);
            }
            else
            {
                me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE | UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_STUNNED);
                me->SetReactState(REACT_PASSIVE);
            }
            SetImmuneToDeathGrip();
        }
Example #3
0
 void Reset()
 {
     _Reset();
     doDelayFrenzy = false;
     bAchievement = true;
     SetImmuneToDeathGrip();
 }
Example #4
0
 void Reset()
 {
     me->SetReactState(REACT_AGGRESSIVE);
     me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
     _Reset();
     SetImmuneToDeathGrip();
 }
Example #5
0
        void Reset()
        {
            LiveTriggerGUID.clear();
            DeadTriggerGUID.clear();

            me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE|UNIT_FLAG_DISABLE_MOVE);
            me->SetReactState(REACT_PASSIVE);
            if (instance)
                instance->SetData(DATA_GOTHIK_GATE, GO_STATE_ACTIVE);
            _Reset();
            mergedSides = false;
            phaseTwo = false;
            thirtyPercentReached = false;
            SetImmuneToDeathGrip();
        }
Example #6
0
        void Reset()
        {
            _Reset();

            PortalsGUID[0] = PortalsGUID[1] = PortalsGUID[2] = PortalsGUID[3] = 0;
            KTTriggerGUID = 0;

            me->setFaction(35);
            me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_DISABLE_MOVE | UNIT_FLAG_NOT_SELECTABLE);
            std::map<uint64, float>::const_iterator itr;
            for (itr = chained.begin(); itr != chained.end(); ++itr)
            {
                if (Player* charmed = Unit::GetPlayer(*me, (*itr).first))
                    charmed->SetFloatValue(OBJECT_FIELD_SCALE_X, (*itr).second);
            }

            chained.clear();
            spawns.DespawnAll();

            FindGameObjects();

            if (GameObject *pKTTrigger = me->GetMap()->GetGameObject(KTTriggerGUID))
            {
                pKTTrigger->ResetDoorOrButton();
                pKTTrigger->SetPhaseMask(1, true);
            }

            for (uint8 i = 0; i <= 3; ++i)
            {
                if (GameObject *pPortal = me->GetMap()->GetGameObject(PortalsGUID[i]))
                {
                    if (!((pPortal->getLootState() == GO_READY) || (pPortal->getLootState() == GO_NOT_READY)))
                        pPortal->ResetDoorOrButton();
                }
            }

            nGuardiansOfIcecrownCount = 0;
            uiGuardiansOfIcecrownTimer = 5000;                   //5 seconds for summoning each Guardian of Icecrown in phase 3

            Phase = 0;
            nAbomination = 0;
            nWeaver = 0;

	     SetImmuneToDeathGrip();
        }
Example #7
0
        void Reset()
        {
            _Reset();
            SetImmuneToDeathGrip();

            hasTaunted = false;

            //if (GetDifficulty() == RAID_DIFFICULTY_25MAN_NORMAL)
            //{
            Position pos;

            // respawn guard using home position,
            // otherwise, after a wipe, they respawn where boss was at wipe moment.
            pos = me->GetHomePosition();
            pos.m_positionY -= 10.0f;
            me->SummonCreature(MOB_CRYPT_GUARD, pos, TEMPSUMMON_CORPSE_DESPAWN);

            if (GetDifficulty() == RAID_DIFFICULTY_25MAN_NORMAL)
            {
                pos = me->GetHomePosition();
                pos.m_positionY += 10.0f;
                me->SummonCreature(MOB_CRYPT_GUARD, pos, TEMPSUMMON_CORPSE_DESPAWN);
            }
        }
Example #8
0
 void Reset()
 {
     _Reset();
     SetImmuneToDeathGrip();
 }