• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[JASS] Skill Doesn't Cooldown Work on? Why?

Status
Not open for further replies.
Level 5
Joined
Jan 4, 2009
Messages
118
I'll try simply spell "Blink Strike" by use ability "Channel" for base casts, but when I use skill it doesn't cooldown
work. Why? tell me plz!!

PS. When I comment SetUnitPosition Skill does cooldown work on....

Code :

JASS:
call SetUnitPosition(....)
if(IsUnitEnemy(GetSpellTargetUnit(), GetOwningPlayer(GetTriggerUnit())) == true)then
     // Deals Damage
endif

Help me plz!!
 
Level 17
Joined
Apr 27, 2008
Messages
2,455
I'm quite sure but not 100 % that it is spell and event related.
I mean with the spell A, if you interrupt orders on the spell effect event, the cooldown will be applied, but not with the spell B.
You could try to change the spell base and play with the different spell events.
 
Status
Not open for further replies.
Top