• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Solved] Hero´s stats influence the cooldown

Status
Not open for further replies.
Level 13
Joined
Oct 28, 2019
Messages
528
  • QSwordAttack
    • Events
      • Unit - A unit owned by Player 2 (Blue) Starts the effect of an ability
    • Conditions
      • (Casting unit) Equal to HeroVariable
      • (Ability being cast) Equal to Berserk (Q)
      • BoleanTarget Equal to True
    • Actions
      • Unit - For Unit HeroVariable, start cooldown of ability (Ability being cast) " over "10.00 seconds.
      • Unit - Order HeroVariable to Neutral Sea Witch - Forked Lightning UnitTarget
Im using a dummy spell berserk to use as attack, but the cooldown should be interfered by stats like agility and itens,

I´ve put 10 seconds real number but even the cooldown of 10 sec dont work, need help
 
Level 13
Joined
Oct 28, 2019
Messages
528
SOLVED
  • QSwordAttack
    • Events
      • Unit - A unit owned by Player 2 (Blue) Finishes casting an ability
    • Conditions
      • (Casting unit) Equal to HeroVariable
      • (Ability being cast) Equal to Berserk (Q)
      • BoleanTarget Equal to True
    • Actions
      • Unit - For Unit HeroVariable, start cooldown of ability (Ability being cast) " over "(3.00 - (0.20 x (Real((Agility of HeroVariable (Include bonuses)))))) seconds.
      • Unit - Order HeroVariable to Neutral Sea Witch - Forked Lightning UnitTarget
I´ve just change to finishes casting an ability
 

Remixer

Map Reviewer
Level 33
Joined
Feb 19, 2011
Messages
2,119
Finishes casting works in this case, but is usually bad practice as it can lead to issues. In order to start a cooldown, the spell must not be on cooldown (Cooldown does not start when unit Finishes casting, but before Spell Effect, so that's why it works in this case). If you want to start a cooldown, just simply reset the ability's cooldown first using the reset native.
 
Status
Not open for further replies.
Top