Embrace_It
New Member
- Reaction score
- 9
I have made the following function:
I based some abilities on 'Faeriefire' and used this, but it doesnt work...
I have double checked all vars as well...(DUMMY_CASTER/LIFE_TIME are globals)
JASS:
function DummyCastTarget takes unit source, unit target, integer abilityID, integer lvl, string order returns nothing
local unit dummycaster = CreateUnit(GetOwningPlayer(source), DUMMY_CASTER, GetUnitX(source), GetUnitY(source), 0.)
call UnitAddAbility(dummycaster, abilityID)
call SetUnitAbilityLevel(dummycaster, abilityID, lvl)
call IssueTargetOrder(dummycaster, order, target)
call UnitApplyTimedLife(dummycaster, 039;BTLF039;, LIFE_TIME)
set dummycaster = null
endfunction
I based some abilities on 'Faeriefire' and used this, but it doesnt work...
I have double checked all vars as well...(DUMMY_CASTER/LIFE_TIME are globals)