cleeezzz
The Undead Ranger.
- Reaction score
- 268
JASS:
call DisableTrigger(LazorTrig)
loop
set fog = FirstOfGroup(g)
exitwhen fog == null
call UnitDamageTarget(d.tower,fog,d.damage,false,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_UNIVERSAL,null)
set d.damage = d.damage * .75
call GroupRemoveUnit(g,fog)
endloop
call EnableTrigger(LazorTrig)
those are the actions, and these are the events,
JASS:
private function Init takes nothing returns nothing
local trigger trig = CreateTrigger( )
set LazorTrig = trig
call TriggerRegisterAnyUnitDamaged(trig)
call TriggerAddAction( trig, function Actions )
endfunction
yet it still infinite loops O_O