Updates to fix taunt button on PET UI to match live behavior.

This commit is contained in:
Noudess
2020-09-02 12:50:11 -04:00
parent 29f7bc7a9c
commit 56afa0404b
9 changed files with 29 additions and 12 deletions
+6 -1
View File
@@ -904,7 +904,8 @@ void Client::CompleteConnect()
SetPetCommandState(PET_BUTTON_REGROUP, 0);
SetPetCommandState(PET_BUTTON_FOLLOW, 1);
SetPetCommandState(PET_BUTTON_GUARD, 0);
SetPetCommandState(PET_BUTTON_TAUNT, 1);
// Taunt saved on client side for logging on with pet
// In our db for when we zone.
SetPetCommandState(PET_BUTTON_HOLD, 0);
SetPetCommandState(PET_BUTTON_GHOLD, 0);
SetPetCommandState(PET_BUTTON_FOCUS, 0);
@@ -1631,6 +1632,10 @@ void Client::Handle_Connect_OP_ZoneEntry(const EQApplicationPacket *app)
pet->CalcBonuses();
pet->SetHP(m_petinfo.HP);
pet->SetMana(m_petinfo.Mana);
// 1st login, client takes care of this from button status
if (!firstlogon) {
pet->SetTaunting(m_petinfo.taunting);
}
}
m_petinfo.SpellID = 0;
}