I'm trying to make a stampede ability, which is being maintained by a dummy.
Here is my trigger:
So, when I had the skill on my hero - it was working fine, then I decided to make a dummy sustain it, and it stopped working. I removed the mana cost of the ability, gave it 99999 range, but still nothing.
I tried to make the dummy cast the original stampede ('ANst'), but still nothing...
Anyone can help me? xP
Here is my trigger:
JASS:
function HawkAttack takes nothing returns boolean
local unit u
local unit d
if GetSpellAbilityId() == 'A07Q' then
set u = GetTriggerUnit()
set d = CreateUnit(GetOwningPlayer(u), 'h00C', GetUnitX(u), GetUnitY(u), 0)
// 'h00C' = dummy unit
call UnitApplyTimedLife(d, 'BTLF', 6.5)
call UnitAddAbility(d, 'A058')
// 'A058' = the stampede ability (it's working fine, when cast directly by the hero)
call SetUnitAbilityLevel(d, 'A058', GetUnitAbilityLevel(u, 'A07Q'))
call IssuePointOrder(d, "stampede", GetSpellTargetX(), GetSpellTargetY())
call SaveUnitHandle(udg_Unit_Table, GetHandleId(u), 'hadc', d)
// Using this for side stuff, don't mind it
set u = null
set d = null
endif
return false
endfunction
So, when I had the skill on my hero - it was working fine, then I decided to make a dummy sustain it, and it stopped working. I removed the mana cost of the ability, gave it 99999 range, but still nothing.
I tried to make the dummy cast the original stampede ('ANst'), but still nothing...
Anyone can help me? xP