Scripts/MagistersTerrace: fix possible crash

This commit is contained in:
joschiwald
2014-06-27 18:45:49 +02:00
parent 78ffaf6ca6
commit 52023b1e6b

View File

@@ -135,6 +135,22 @@ class instance_magisters_terrace : public InstanceMapScript
}
}
void OnGameObjectRemove(GameObject* go) override
{
switch (go->GetEntry())
{
case GO_VEXALLUS_DOOR:
case GO_SELIN_DOOR:
case GO_SELIN_ENCOUNTER_DOOR:
case GO_DELRISSA_DOOR:
case GO_KAEL_DOOR:
AddDoor(go, false);
break;
default:
break;
}
}
bool SetBossState(uint32 type, EncounterState state) override
{
if (!InstanceScript::SetBossState(type, state))