mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[10562] Cleanup WorldSession::HandlePetAction
Also fixed attack target seelction base at packet content instead direct player selection. Remove unneded arg for Unit::SendPetAIReaction.
This commit is contained in:
parent
ab3de84cca
commit
98f36e4652
4 changed files with 22 additions and 22 deletions
|
|
@ -9770,14 +9770,14 @@ void Unit::SendPetTalk (uint32 pettalk)
|
|||
((Player*)owner)->GetSession()->SendPacket(&data);
|
||||
}
|
||||
|
||||
void Unit::SendPetAIReaction(uint64 guid)
|
||||
void Unit::SendPetAIReaction()
|
||||
{
|
||||
Unit* owner = GetOwner();
|
||||
if(!owner || owner->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
WorldPacket data(SMSG_AI_REACTION, 8 + 4);
|
||||
data << uint64(guid);
|
||||
data << GetObjectGuid();
|
||||
data << uint32(AI_REACTION_HOSTILE);
|
||||
((Player*)owner)->GetSession()->SendPacket(&data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue