Core/Vehicle: Only interrupt channels with SpellAuraInterruptFlags::Mount when entering a vehicle (#29430)

This commit is contained in:
ModoX
2023-12-15 10:18:30 +01:00
committed by GitHub
parent 8b9eaf0bdf
commit ee95a5e00f

View File

@@ -834,7 +834,9 @@ bool VehicleJoinEvent::Execute(uint64, uint32)
}
}
Passenger->InterruptNonMeleeSpells(false);
Passenger->InterruptSpell(CURRENT_GENERIC_SPELL);
Passenger->InterruptSpell(CURRENT_AUTOREPEAT_SPELL);
Passenger->RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags::Mount);
Passenger->RemoveAurasByType(SPELL_AURA_MOUNTED);
VehicleSeatEntry const* veSeat = Seat->second.SeatInfo;