Pet stop does not clear aggro

This commit is contained in:
Michael Cook (mackal) 2017-05-04 23:08:46 -04:00
parent fe9fb72dff
commit 0e96e6689a
2 changed files with 1 additions and 4 deletions

View File

@ -10421,7 +10421,6 @@ void Client::Handle_OP_PetCommands(const EQApplicationPacket *app)
} else {
mypet->SetPetStop(true);
mypet->SetCurrentSpeed(0);
mypet->WipeHateList();
mypet->SetTarget(nullptr);
}
mypet->Say_StringID(MT_PetResponse, PET_GETLOST_STRING);
@ -10434,7 +10433,6 @@ void Client::Handle_OP_PetCommands(const EQApplicationPacket *app)
if ((mypet->GetPetType() == petAnimation && aabonuses.PetCommands[PetCommand]) || mypet->GetPetType() != petAnimation) {
mypet->SetPetStop(true);
mypet->SetCurrentSpeed(0);
mypet->WipeHateList();
mypet->SetTarget(nullptr);
mypet->Say_StringID(MT_PetResponse, PET_GETLOST_STRING);
}

View File

@ -935,7 +935,7 @@ void Mob::AI_Process() {
bool engaged = IsEngaged();
bool doranged = false;
if (!zone->CanDoCombat()) {
if (!zone->CanDoCombat() || IsPetStop()) {
engaged = false;
}
@ -1300,7 +1300,6 @@ void Mob::AI_Process() {
}
}
else {
if (m_PlayerState & static_cast<uint32>(PlayerState::Aggressive))
SendRemovePlayerState(PlayerState::Aggressive);