mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 07:38:36 +00:00
[Bug Fix] Clear Ramp when Clearing hate (#3892)
* [Bug Fix] Clear Ramp when Clearing hate When clearing a client from the hatelist, also clear them from ramp * Add additional calls missed * requested changes * extra tabs
This commit is contained in:
@@ -2783,10 +2783,12 @@ bool Bot::IsValidTarget(Client* bot_owner, Client* leash_owner, float lo_distanc
|
||||
// Normally, we wouldn't want to do this without class checks..but, too many issues can arise if we let enchanter animation pets run rampant
|
||||
if (HasPet()) {
|
||||
GetPet()->RemoveFromHateList(tar);
|
||||
GetPet()->RemoveFromRampageList(tar);
|
||||
GetPet()->SetTarget(nullptr);
|
||||
}
|
||||
|
||||
RemoveFromHateList(tar);
|
||||
RemoveFromRampageList(tar);
|
||||
SetTarget(nullptr);
|
||||
|
||||
SetAttackFlag(false);
|
||||
|
||||
Reference in New Issue
Block a user