Prevented target from adding hate to itself when applying a dot.

This commit is contained in:
Cekis
2018-03-23 16:02:23 -07:00
committed by CekisSWG
parent 05323d2628
commit ebec602600
@@ -2702,7 +2702,7 @@ public class dot extends script.base_script
}
if (!isPlayer(target))
{
if (isIdValid(caster) && exists(caster))
if (isIdValid(caster) && exists(caster) && !target.equals(caster))
{
addHate(target, caster, strength);
addHate(caster, target, 0.0f);