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:
@@ -24531,3 +24531,10 @@ void Player::_SaveInstanceTimeRestrictions(SQLTransaction& trans)
|
||||
trans->Append(stmt);
|
||||
}
|
||||
}
|
||||
|
||||
void Player::SendClearFocus(Unit* target)
|
||||
{
|
||||
WorldPacket data(SMSG_BREAK_TARGET, target->GetPackGUID().size());
|
||||
data.append(target->GetPackGUID());
|
||||
GetSession()->SendPacket(&data);
|
||||
}
|
||||
@@ -2281,6 +2281,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
|
||||
void SendCinematicStart(uint32 CinematicSequenceId);
|
||||
void SendMovieStart(uint32 MovieId);
|
||||
void SendClearFocus(Unit* target);
|
||||
|
||||
/*********************************************************/
|
||||
/*** INSTANCE SYSTEM ***/
|
||||
|
||||
Reference in New Issue
Block a user