PurgeandFire
zxcvmkgdfg
- Reaction score
- 509
Cool, some small things though:
You don't use [ljass]integer i[/ljass].
Eh, you only use mana once in this function. In the other function you reset it anyway, so you can directly replace [ljass]mana[/ljass] with [ljass]GetUnitState(u,UNIT_STATE_MANA)[/ljass].
Also, out of curiosity, do you have to do this stuff:
Before destroying a trigger?
Otherwise, cool system. Nice idea, of devolving. ;D
JASS:
You don't use [ljass]integer i[/ljass].
JASS:
set mana = GetUnitState(u, UNIT_STATE_MANA)
if (mana != 0) then
call SetUnitState(u, UNIT_STATE_MANA, GetUnitState(u, UNIT_STATE_MAX_MANA)*manaRatio)
endif
Eh, you only use mana once in this function. In the other function you reset it anyway, so you can directly replace [ljass]mana[/ljass] with [ljass]GetUnitState(u,UNIT_STATE_MANA)[/ljass].
Also, out of curiosity, do you have to do this stuff:
JASS:
call DisableTrigger(trackPointOrder)
call TriggerClearConditions(trackPointOrder)
call DestroyTrigger(trackPointOrder)
call DisableTrigger(trackTargetOrder)
call TriggerClearConditions(trackTargetOrder)
call DestroyTrigger(trackTargetOrder)
Before destroying a trigger?
Otherwise, cool system. Nice idea, of devolving. ;D