Cooldown on Teleport

Status
Not open for further replies.
Level 3
Joined
May 19, 2008
Messages
32
hi,
is there a command that resets the cooldown for a specified spell ?

when i create a teleport spell i basically move the unit instantly, before the cooldown starts to take effect ... which sux

or is there an event like EVENT_PLAYER_UNIT_SPELL_CAST, EVENT_PLAYER_UNIT_SPELL_START ect.. that times exactly the point when the cast is still in progress (so i have access to all target data) but the cooldown is already executed (i dont want to use a timer and transfer all the data ect..)

any ideas ?
 
kk thanx4reply :grin:


... no that doesnt work ... no cooldown on skills that are added

using
UnitAddSkill(..)
or UnitAddSkillBJ(..)
or SelectHeroSkill(..)

...i could remove all other skills then cooldown and then add the other skills again ... but thats stupidno ?
 
Last edited:
no im trying the opposite,

when i move my unit before the spell is finished i dont get the cooldown effect
on the other hand if i wait till its finished i dont have access to target data anymore because the spell is over

i thought there must be an easier way than staring all the target data and then creating a waiting timer that fires the spells effects taking the target data from a cache after the spell is finished ...
 
Last edited:
Status
Not open for further replies.
Back
Top