HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

A questions about Channel

12-15-2008, 05:59 PM#1
Ignitedstar
Hmm... I was wondering: if you channel a triggered, on-going spell using Channel whlie the hero is channeling- or going through the Follow Through Time, will the triggers of the triggered spell stop instantly the moment the channeling is stopped? If not, is there anyway to detect this?
12-15-2008, 06:06 PM#2
Monstah
Quote:
Originally Posted by Ignitedstar
Hmm... I was wondering: if you channel a triggered, on-going spell using Channel whlie the hero is channeling- or going through the Follow Through Time, will the triggers of the triggered spell stop instantly the moment the channeling is stopped? If not, is there anyway to detect this?

"Unit - Unit finishes casting an ability"? I believe it fires both when you complete the channeling and when you cancel it. You can check which case it was by looking for a specific buff on the target, for example (create a dummy buff if your ability gives none).
12-15-2008, 07:28 PM#3
akolyt0r
oh i had a similar problem aswell....
see here
but its Jass...
12-15-2008, 08:51 PM#4
Ignitedstar
Mmmm, It's not really a problem, in my case. This is more for just experimentation.

"Unit finishes casting an ability" might work; I could use it to stop the spell from looping. All I really need then is a check for any interruption, so this'll work fine. I'd have to create two triggers for this then.

Unless someone with more knowledge about the topic at hand would like to object.
12-15-2008, 08:56 PM#5
moyack
You can do this: when the spell starts, store the caster current order via GetUnitCurrentOrder(<your unit>), then with the periodic function detect if the order has changed, if so, then end the code.

The advantage of this approach is that we don't need to have a separate code only to detect that event.
12-17-2008, 12:14 AM#6
Pyrogasm
And BTW, EVENT_PLAYER_UNIT_SPELL_FINISH only fires when the spell is successfully channeled all of the way through. SPELL_ENDCAST is when the unit stops for any reason (stunned, re-ordered, spell is successfully cast, etc.).