• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

The strange occasion of dummy impale

Level 10
Joined
May 24, 2016
Messages
339
Hello! It seems like a rare issue for me, but somehow dummy wont cast Impale ability.

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
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.
 
I ran into a similar problem not long ago, also with an Impale-based ability. In my case, it was a strange behavior that occurred with my hero's Channel ability, I set the skill as "Instant" cast and selected "impale" as the base ID, which makes all Impale based skills to never cast through triggers. It appears that Channel abilities must have a base ID that matches the type of cast.

Just a possibility, but maybe you have this same problem?

And yes, this is a documented problem with Channel, you can check it here:
https://docs.google.com/document/d/...6TuQ0tjfKHXBELWpo/edit#heading=h.jh0prnzh31tm
 
Level 10
Joined
May 24, 2016
Messages
339
I ran into a similar problem not long ago, also with an Impale-based ability. In my case, it was a strange behavior that occurred with my hero's Channel ability, I set the skill as "Instant" cast and selected "impale" as the base ID, which makes all Impale based skills to never cast through triggers. It appears that Channel abilities must have a base ID that matches the type of cast.

Just a possibility, but maybe you have this same problem?

And yes, this is a documented problem with Channel, you can check it here:
https://docs.google.com/document/d/...6TuQ0tjfKHXBELWpo/edit#heading=h.jh0prnzh31tm
Thx, Ill try to figure out.


For now I have changed Channel ability "allowed targets" from "point or target" to just "point" and currently testing it out. Maybe It will help.
 
Top