Scripts/TotFW: Slipstream will now despawn when engaging Al'akir

This commit is contained in:
Ovahlord
2019-01-27 22:22:49 +01:00
parent a60e29d263
commit 98be6badac
2 changed files with 9 additions and 2 deletions

View File

@@ -333,6 +333,8 @@ struct boss_alakir : public BossAI
if (IsHeroic())
events.ScheduleEvent(EVENT_STATIC_SHOCK, 5s, 0, PHASE_ONE);
summons.DespawnEntry(NPC_SLIPSTREAM);
}
void Reset()

View File

@@ -87,8 +87,6 @@ class at_totfw_catch_fall : public AreaTriggerScript
bool OnTrigger(Player* player, AreaTriggerEntry const* /*areaTrigger*/)
{
if (Creature* trigger = player->FindNearestCreature(NPC_WORLD_TRIGGER, 500.0f, true))
trigger->CastSpell(player, SPELL_CATCH_FALL, true);
if (InstanceScript* instance = player->GetInstanceScript())
{
@@ -98,7 +96,14 @@ class at_totfw_catch_fall : public AreaTriggerScript
nezir->AI()->DoAction(ACTION_PLAYER_LEFT_PLATFORM);
else if (Creature* rohash = instance->GetCreature(DATA_ROHASH))
rohash->AI()->DoAction(ACTION_PLAYER_LEFT_PLATFORM);
if (instance->GetBossState(DATA_ALAKIR) == IN_PROGRESS)
return true;
}
if (Creature* trigger = player->FindNearestCreature(NPC_WORLD_TRIGGER, 500.0f, true))
trigger->CastSpell(player, SPELL_CATCH_FALL, true);
return true;
}
};