Core/Players: Implement generic SendClearFocus instead of magic SMSG_BREAK_PACKET randomly in the middle of code. Also preallocate correct size for packed guid.
This commit is contained in:
1 parent
6dbae56f57
commit
17971acddb
3 files changed
+9
-3
No files matched your search
@@ -16411,9 +16411,7 @@ void Unit::EnterVehicle(Vehicle *vehicle, int8 seatId, AuraApplication const * a
|
||||
WorldPacket data(SMSG_ON_CANCEL_EXPECTED_RIDE_VEHICLE_AURA, 0);
|
||||
thisPlr->GetSession()->SendPacket(&data);
|
||||
|
||||
data.Initialize(SMSG_BREAK_TARGET, 7);
|
||||
data.append(vehicle->GetBase()->GetPackGUID());
|
||||
thisPlr->GetSession()->SendPacket(&data);
|
||||
thisPlr->SendClearFocus(vehicle->GetBase());
|
||||
}
|
||||
|
||||
SetControlled(true, UNIT_STAT_ROOT);
|
||||
|
||||
Reference in new issue
Block a user