WolfieeifloW
WEHZ Helper
- Reaction score
- 372
JASS:
if(GetRandomInt(1, intCasterB) >= intCasterO) then
call TimerStart(EXPTIMER[GetPlayerId(GetOwningPlayer(caster))], EXPDELAY(QT), false, null)
loop
exitwhen(TimerGetRemaining(EXPTIMER[GetPlayerId(GetOwningPlayer(caster))]) <= 0.00)
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.03))
endloop
loop
exitwhen i == CountUnitsInGroup(GSGROUP)
set expu = GroupPickRandomUnit(GSGROUP)
call GroupEnumUnitsInRange(EXPGROUP, GetUnitX(expu), GetUnitY(expu), EXPRANGE(QT), Condition(function EXPConditions))
call ForGroup(EXPGROUP, function EXPActions)
call GroupRemoveUnit(GSGROUP, expu)
set expu = null
set i = i + 1
endloop
endif
It doesn't wait for the timer to expire, it just goes right through the wait.