[BugFix] Charm Targeting and other issues. (#1655)

* fix for target change bug on client

* Update spell_effects.cpp
This commit is contained in:
KayenEQ
2021-10-30 17:48:55 -04:00
committed by GitHub
parent 4389f84ea5
commit df3161455a
3 changed files with 26 additions and 21 deletions
+1 -1
View File
@@ -2875,7 +2875,7 @@ bool Mob::RemoveFromHateList(Mob* mob)
ResetAssistCap();
}
}
if(GetTarget() == mob)
if(IsAIControlled() && GetTarget() == mob)
{
SetTarget(hate_list.GetEntWithMostHateOnList(this));
}