mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-04 22:07:52 +00:00
fix(Scripts/Ulduar): Add Mimiron elevator knockback (#26450)
Co-authored-by: Unholychick <lucas__jensen@hotmail.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -47,6 +47,9 @@ enum SpellData
|
|||||||
SPELL_MINE_EXPLOSION = 66351,
|
SPELL_MINE_EXPLOSION = 66351,
|
||||||
SPELL_SUMMON_PROXIMITY_MINE = 65347,
|
SPELL_SUMMON_PROXIMITY_MINE = 65347,
|
||||||
|
|
||||||
|
// PHASE 1 -> 2 TRANSITION:
|
||||||
|
SPELL_ELEVATOR_KNOCKBACK = 65096, // Self-cast by the world trigger; sweeps players off the elevator as it rises
|
||||||
|
|
||||||
// PHASE 2:
|
// PHASE 2:
|
||||||
SPELL_HEAT_WAVE = 64533,
|
SPELL_HEAT_WAVE = 64533,
|
||||||
|
|
||||||
@@ -98,6 +101,7 @@ enum NPCs
|
|||||||
NPC_ASSAULT_BOT = 34057,
|
NPC_ASSAULT_BOT = 34057,
|
||||||
NPC_JUNK_BOT = 33855,
|
NPC_JUNK_BOT = 33855,
|
||||||
NPC_MAGNETIC_CORE = 34068,
|
NPC_MAGNETIC_CORE = 34068,
|
||||||
|
NPC_WORLD_TRIGGER = 21252,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum GOs
|
enum GOs
|
||||||
@@ -488,6 +492,8 @@ struct boss_mimiron : public BossAI
|
|||||||
elevator->SetLootState(GO_READY);
|
elevator->SetLootState(GO_READY);
|
||||||
elevator->UseDoorOrButton(0, false);
|
elevator->UseDoorOrButton(0, false);
|
||||||
elevator->EnableCollision(false);
|
elevator->EnableCollision(false);
|
||||||
|
if (Creature* trigger = me->SummonCreature(NPC_WORLD_TRIGGER, elevator->GetPositionX(), elevator->GetPositionY(), elevator->GetPositionZ(), 0.0f, TEMPSUMMON_TIMED_DESPAWN, 5000))
|
||||||
|
trigger->CastSpell(trigger, SPELL_ELEVATOR_KNOCKBACK);
|
||||||
}
|
}
|
||||||
events.ScheduleEvent(EVENT_ELEVATOR_INTERVAL_1, 6s);
|
events.ScheduleEvent(EVENT_ELEVATOR_INTERVAL_1, 6s);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user