Fixed issue occurring when a player or NPC does an AoE and hate is applied against himself.

This commit is contained in:
Cekis
2017-01-20 18:10:39 +00:00
parent 3e5f083533
commit a0dd4a063f
+1 -1
View File
@@ -2184,7 +2184,7 @@ public class dot extends script.base_script
{
return false;
}
if (isIdValid(attacker) && isMob(attacker))
if (isIdValid(attacker) && isMob(attacker) && !target.equals(attacker))
{
addHate(target, attacker, 0.0f);
addHate(attacker, target, 0.0f);