Scripts/Ulduar: Move handling of Razorscale Mole Machine to instance script.

This commit is contained in:
Supabad
2011-05-10 10:55:29 +02:00
parent 78b5fd6153
commit 161ecc2e4c
2 changed files with 3 additions and 2 deletions

View File

@@ -758,8 +758,6 @@ class npc_mole_machine_trigger : public CreatureScript
if (!GobSummoned && SummonGobTimer <= Diff)
{
DoCast(SPELL_SUMMON_MOLE_MACHINE);
if (GameObject* molemachine = me->FindNearestGameObject(GO_MOLE_MACHINE, 1))
molemachine->SetGoState(GO_STATE_ACTIVE);
GobSummoned = true;
}
else

View File

@@ -255,6 +255,9 @@ public:
case GO_RAZOR_HARPOON_4:
uiRazorHarpoonGUIDs[3] = go->GetGUID();
break;
case GO_MOLE_MACHINE:
if (GetBossState(TYPE_RAZORSCALE) == IN_PROGRESS)
go->SetGoState(GO_STATE_ACTIVE);
}
}