Scripts/MGT: Kael'thas will now despawn at evade

This commit is contained in:
Ovahlord
2019-02-20 21:08:35 +01:00
parent 6e252a3188
commit f6e9ff5ca4
3 changed files with 3 additions and 18 deletions

View File

@@ -167,15 +167,12 @@ struct boss_felblood_kaelthas : public BossAI
instance->SetBossState(DATA_KAELTHAS_SUNSTRIDER, DONE);
}
void EnterEvadeMode(EvadeReason why) override
void EnterEvadeMode(EvadeReason /*why*/) override
{
DoCastAOE(SPELL_CLEAR_FLIGHT, true);
_EnterEvadeMode();
summons.DespawnAll();
events.Reset();
me->ReleaseFocus();
me->SetReactState(REACT_AGGRESSIVE);
BossAI::EnterEvadeMode(why);
_DespawnAtEvade();
}
void DamageTaken(Unit* attacker, uint32 &damage) override

View File

@@ -174,10 +174,6 @@ class instance_magisters_terrace : public InstanceMapScript
switch (go->GetEntry())
{
case GO_KAEL_STATUE_1:
case GO_KAEL_STATUE_2:
_statueGUIDs.push_back(go->GetGUID());
break;
case GO_ESCAPE_ORB:
if (GetBossState(DATA_KAELTHAS_SUNSTRIDER) == DONE)
go->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_NOT_SELECTABLE);
@@ -220,12 +216,7 @@ class instance_magisters_terrace : public InstanceMapScript
_delrissaDeathCount = 0;
break;
case DATA_KAELTHAS_SUNSTRIDER:
if (state == NOT_STARTED)
{
for (ObjectGuid guid : _statueGUIDs)
HandleGameObject(guid, false);
}
else if (state == DONE)
if (state == DONE)
if (GameObject* orb = GetGameObject(DATA_ESCAPE_ORB))
orb->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_NOT_SELECTABLE);
break;
@@ -247,7 +238,6 @@ class instance_magisters_terrace : public InstanceMapScript
protected:
EventMap _events;
GuidVector _statueGUIDs;
GuidSet _kaelthasPreTrashGUIDs;
uint8 _delrissaDeathCount;
uint8 _kaelthasIntroState;

View File

@@ -80,8 +80,6 @@ enum MTGameObjectIds
GO_SUNWELL_RAID_GATE_4 = 187770,
GO_SUNWELL_RAID_GATE_5 = 187896,
GO_ASYLUM_DOOR = 188064,
GO_KAEL_STATUE_1 = 188165,
GO_KAEL_STATUE_2 = 188166,
GO_ESCAPE_ORB = 188173
};