• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

DOT - DamageOverTime

Status
Not open for further replies.
Level 18
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?

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 :p
 
Status
Not open for further replies.
Top