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

This commit is contained in:
Cekis
2018-03-23 15:59:13 -07:00
committed by CekisSWG
parent a625bd44dc
commit ce9f8ce26a
+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);