[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:
catapultam-habeo
2023-03-04 10:40:29 -06:00
committed by GitHub
parent 5d7a7bb4b2
commit 2cc61ef8c1
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -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);
}
}