mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
Scripts/TotFW: Slipstream will now despawn when engaging Al'akir
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user