- Joined
- May 24, 2016
- Messages
- 339
Hello! It seems like a rare issue for me, but somehow dummy wont cast Impale ability.
A04K - Custom ability for impale, AUim - dummy impale abil
The only thing that might be unclear - I set range caste of A04K as 2200, while setting range cast of AUim to 2300 with wave range as 2200.
JASS:
if spellid == 'A04K'
set LVL = GetUnitAbilityLevel(c,'A04K')
set x = GetSpellTargetX()
set y = GetSpellTargetY()
set F = CreateUnit(GetOwningPlayer(c),dummy,GetUnitX(c),GetUnitY(c),0) //GetUnitFacing(c)
call UnitApplyTimedLife(F,'BTLF',4.5)
call UnitAddAbility(F,'AUim')
call SetUnitAbilityLevel(F,'AUim',LVL)
call IssuePointOrder(F,"impale",x,y)
endif
The only thing that might be unclear - I set range caste of A04K as 2200, while setting range cast of AUim to 2300 with wave range as 2200.