mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
fix(Scripts/Ulduar): unstrand Flame Leviathan seat immunities on exit (#27793)
This commit is contained in:
@@ -751,7 +751,7 @@ struct boss_flame_leviathan_seat : public VehicleAI
|
||||
|
||||
void PassengerBoarded(Unit* who, int8 seatId, bool apply) override
|
||||
{
|
||||
if (!who->IsPlayer() || !me->GetVehicle())
|
||||
if (!who->IsPlayer())
|
||||
return;
|
||||
|
||||
who->ApplySpellImmune(63847, IMMUNITY_ID, 63847, apply); // SPELL_FLAME_VENTS_TRIGGER
|
||||
@@ -760,6 +760,9 @@ struct boss_flame_leviathan_seat : public VehicleAI
|
||||
// 10yd ground-level AoE that cannot reach the seats ~15yd up on the boss' back
|
||||
who->ApplySpellImmune(SPELL_HODIRS_FURY_STUN, IMMUNITY_ID, SPELL_HODIRS_FURY_STUN, apply);
|
||||
|
||||
if (!me->GetVehicleKit())
|
||||
return;
|
||||
|
||||
if (seatId == SEAT_PLAYER)
|
||||
{
|
||||
if (Unit* turret = me->GetVehicleKit()->GetPassenger(SEAT_TURRET))
|
||||
|
||||
Reference in New Issue
Block a user