fix(Scripts/Ulduar): unstrand Flame Leviathan seat immunities on exit (#27793)

This commit is contained in:
sogladev
2026-09-25 18:40:36 -03:00
committed by GitHub
parent e622db537d
commit 03f986f2f6
@@ -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))