[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-habeoandAlex King authored and GitHub committed 2023-03-04 11:40:29 -05:00
1 parent 5d7a7bb4b2
commit 2cc61ef8c1
2 files changed
+9 -1

No files matched your search

+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);
}
}