- Joined
- Oct 18, 2007
- Messages
- 930
Ok im making my sys now and i just wanted to ask:
Does this cause any lagg? and is it safe?
Because im doing that if you set the Damager to null the enemy wont run away or attack you
Does this cause any lagg? and is it safe?
JASS:
if dot.Damager != null then
call UnitDamageTarget(dot.Damager, dot.Target, dot.Damage, false, true, dot.at, dot.dt, null)
else
call SetUnitState(dot.Target,UNIT_STATE_LIFE,(GetUnitState(dot.Target,UNIT_STATE_LIFE)) - dot.Damage)
endif
set dot.DamageCount = dot.DamageCount + dot.Damage
Because im doing that if you set the Damager to null the enemy wont run away or attack you