mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 12:31:31 +00:00
Pet stop does not clear aggro
This commit is contained in:
parent
fe9fb72dff
commit
0e96e6689a
@ -10421,7 +10421,6 @@ void Client::Handle_OP_PetCommands(const EQApplicationPacket *app)
|
|||||||
} else {
|
} else {
|
||||||
mypet->SetPetStop(true);
|
mypet->SetPetStop(true);
|
||||||
mypet->SetCurrentSpeed(0);
|
mypet->SetCurrentSpeed(0);
|
||||||
mypet->WipeHateList();
|
|
||||||
mypet->SetTarget(nullptr);
|
mypet->SetTarget(nullptr);
|
||||||
}
|
}
|
||||||
mypet->Say_StringID(MT_PetResponse, PET_GETLOST_STRING);
|
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) {
|
if ((mypet->GetPetType() == petAnimation && aabonuses.PetCommands[PetCommand]) || mypet->GetPetType() != petAnimation) {
|
||||||
mypet->SetPetStop(true);
|
mypet->SetPetStop(true);
|
||||||
mypet->SetCurrentSpeed(0);
|
mypet->SetCurrentSpeed(0);
|
||||||
mypet->WipeHateList();
|
|
||||||
mypet->SetTarget(nullptr);
|
mypet->SetTarget(nullptr);
|
||||||
mypet->Say_StringID(MT_PetResponse, PET_GETLOST_STRING);
|
mypet->Say_StringID(MT_PetResponse, PET_GETLOST_STRING);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -935,7 +935,7 @@ void Mob::AI_Process() {
|
|||||||
bool engaged = IsEngaged();
|
bool engaged = IsEngaged();
|
||||||
bool doranged = false;
|
bool doranged = false;
|
||||||
|
|
||||||
if (!zone->CanDoCombat()) {
|
if (!zone->CanDoCombat() || IsPetStop()) {
|
||||||
engaged = false;
|
engaged = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1300,7 +1300,6 @@ void Mob::AI_Process() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
if (m_PlayerState & static_cast<uint32>(PlayerState::Aggressive))
|
if (m_PlayerState & static_cast<uint32>(PlayerState::Aggressive))
|
||||||
SendRemovePlayerState(PlayerState::Aggressive);
|
SendRemovePlayerState(PlayerState::Aggressive);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user