Core/Vehicles:
- Temporarily unsummon pets when entering vehicle and resummon them when exiting. Also fixes missing pet cast bars on exit. - Correct SMSG_PET_SPELLS packet for vehicle spell initialize
This commit is contained in:
@@ -16833,12 +16833,11 @@ void Unit::_EnterVehicle(Vehicle* vehicle, int8 seatId, AuraApplication const* a
|
||||
// drop flag at invisible in bg
|
||||
if (Battleground *bg = plr->GetBattleground())
|
||||
bg->EventPlayerDroppedFlag(plr);
|
||||
}
|
||||
|
||||
if (Player* thisPlr = this->ToPlayer())
|
||||
{
|
||||
WorldPacket data(SMSG_ON_CANCEL_EXPECTED_RIDE_VEHICLE_AURA, 0);
|
||||
thisPlr->GetSession()->SendPacket(&data);
|
||||
plr->GetSession()->SendPacket(&data);
|
||||
|
||||
plr->UnsummonPetTemporaryIfAny();
|
||||
}
|
||||
|
||||
ASSERT(!m_vehicle);
|
||||
@@ -16912,6 +16911,9 @@ void Unit::_ExitVehicle(Position const* exitPosition)
|
||||
SendMonsterMoveExitVehicle(&pos);
|
||||
Relocate(&pos);
|
||||
|
||||
if (Player* plr = ToPlayer())
|
||||
plr->ResummonPetTemporaryUnSummonedIfAny();
|
||||
|
||||
WorldPacket data2;
|
||||
BuildHeartBeatMsg(&data2);
|
||||
SendMessageToSet(&data2, false);
|
||||
|
||||
Reference in New Issue
Block a user