View Single Post
Old 04-16-2009, 11:34 PM   #2
TriggerHappy
 
Join Date: Feb 2008
Posts: 405

Submissions (2)

TriggerHappy will become famous soon enough (43)TriggerHappy will become famous soon enough (43)

Default

Collapse JASS:
call SetUnitState(data.Caster,UNIT_STATE_LIFE,GetUnitState(data.Caster,UNIT_STATE_LIFE)+PercentageHealPerLevel(data.level) * data.StolenHealth)

Use Get/SetWidgetLife, it's easier to use and it's faster.

Collapse JASS:
            set e = AddSpecialEffectTarget(HealSpecialeffect, data.Caster, "origin")
            call DestroyEffect(e)

Can be inlined.

Also, upload a demo map.
TriggerHappy is offline   Reply With Quote