TempPoint ,Temp Unit, etc.
Btw, for loop must start at 1.
and also, because of its current state about the glaives,the glaive number is not recommended as configurable anymore. It will be hard for those beginners to CnP the codes just to index the glaives 5>.
Btw, Unit group range should be configurable.
Replace UnitApplyTimedLifeBJ with call UnitApplyTimedLife(whichUnit, buffId, duration)
and also, doing it in custom script is useless because GUI 99% BJS.
JASS:
//===========================================================================
function UnitApplyTimedLifeBJ takes real duration, integer buffId, unit whichUnit returns nothing
call UnitApplyTimedLife(whichUnit, buffId, duration)
endfunction
For the unit scaling(actions), set the other two values to 0. X is enough for scaling.
So its (size, 0, 0)
Ability Level of Caster must be indexed.
Your indexing has a problem. You are not moving the last index to the removed index,you are just nulling the values of the removed index.
It must be, ex.:
set unitData[tempIndex] = unitData[lastIndex]
Damage effect attachments should be configurable.
TempPoint[0] = (TS_CasterPos[TempInteger[0]] offset by 400.00 towards 270.00 degrees)
400 and 270 must be configurable as well.