mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
Updates to fix taunt button on PET UI to match live behavior.
This commit is contained in:
+5
-1
@@ -687,6 +687,7 @@ bool Client::Save(uint8 iCommitNow) {
|
||||
pet->GetPetState(m_petinfo.Buffs, m_petinfo.Items, m_petinfo.Name);
|
||||
m_petinfo.petpower = pet->GetPetPower();
|
||||
m_petinfo.size = pet->GetSize();
|
||||
m_petinfo.taunting = pet->CastToNPC()->IsTaunting();
|
||||
} else {
|
||||
memset(&m_petinfo, 0, sizeof(struct PetInfo));
|
||||
}
|
||||
@@ -5642,6 +5643,8 @@ void Client::SuspendMinion()
|
||||
|
||||
CurrentPet->SetMana(m_suspendedminion.Mana);
|
||||
|
||||
CurrentPet->SetTaunting(m_suspendedminion.taunting);
|
||||
|
||||
MessageString(Chat::Magenta, SUSPEND_MINION_UNSUSPEND, CurrentPet->GetCleanName());
|
||||
|
||||
memset(&m_suspendedminion, 0, sizeof(struct PetInfo));
|
||||
@@ -5653,7 +5656,8 @@ void Client::SuspendMinion()
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user