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:
Machiavelli
2011-05-27 17:31:31 +02:00
parent 65fc7f7a28
commit 48b0570f53
2 changed files with 41 additions and 12 deletions
+6 -4
View File
@@ -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);