[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:
Fryguy
2024-01-07 15:27:12 -05:00
committed by GitHub
parent fc8ace91cb
commit 84b8bdd2b4
6 changed files with 68 additions and 9 deletions
+2
View File
@@ -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);