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

* fix for target change bug on client

* Update spell_effects.cpp
This commit is contained in:
KayenEQ authored and GitHub committed 2021-10-30 16:48:55 -05:00
1 parent 4389f84ea5
commit df3161455a
3 files changed
+26 -21

No files matched your search

+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));
}