Core/Vehicles: Players cannot enter a vehicle when in combat. Fixes issue 1966.
--HG-- branch : trunk
This commit is contained in:
@@ -16358,6 +16358,9 @@ void Unit::EnterVehicle(Vehicle *vehicle, int8 seatId)
|
||||
|
||||
if (GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
if(this->ToPlayer()->isInCombat())
|
||||
return;
|
||||
|
||||
this->ToPlayer()->InterruptNonMeleeSpells(false);
|
||||
this->ToPlayer()->StopCastingCharm();
|
||||
this->ToPlayer()->StopCastingBindSight();
|
||||
|
||||
Reference in New Issue
Block a user