mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 03:31:08 +00:00
[Bug Fix] Ensure synchronization of pet taunt state with UI (#3025)
* fix to desync between pet taunt state and button * Update npc.h * Update npc.cpp * Update npc.h --------- Co-authored-by: Alex King <89047260+Kinglykrab@users.noreply.github.com>
This commit is contained in:
@@ -3963,3 +3963,11 @@ void NPC::HandleRoambox()
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
void NPC::SetTaunting(bool is_taunting) {
|
||||
taunting = is_taunting;
|
||||
|
||||
if (IsPet() && IsPetOwnerClient()) {
|
||||
GetOwner()->CastToClient()->SetPetCommandState(PET_BUTTON_TAUNT, is_taunting);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user