- Joined
- Apr 4, 2020
- Messages
- 31
Hello,
i'm currently trying to implement a cooldown for passive ability.
The following trigger is a bit changed to my original, which worked but was only made for 1 level of the passive.
I decided to add levels so i had to change it a bit.
The passive itself does nothing but buffs all the other spells i have. My idea was, passive is ready, then improve spell. If spell is cast, put passive on cd:
What happens is the following:
The dummy passive is added but my hero keeps the original. The CD that should be added is 15 for level 1 (15, 10, 5) but he always starts at 10 sec.
I already changed
Anyone knows what i'm overlooking?
Thanks in advance
i'm currently trying to implement a cooldown for passive ability.
The following trigger is a bit changed to my original, which worked but was only made for 1 level of the passive.
I decided to add levels so i had to change it a bit.
The passive itself does nothing but buffs all the other spells i have. My idea was, passive is ready, then improve spell. If spell is cast, put passive on cd:
-
ChargedRdy
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Lira Windrun
-
(Ability Cooldown Remaining of (Triggering unit) for ability Charged (pass)..) Equal to 0.00
-
(Level of Charged (pass) for (Casting unit)) Greater than 0
-
-
Actions
-
Custom script: local unit u
-
Custom script: set u = GetTriggerUnit()
-
Set VariableSet SC_Charged = Charged (pass)
-
Set VariableSet SC_Charged_lvl = (Level of Charged (pass) for (Triggering unit))
-
Wait 0.50 seconds
-
Unit - Add Charged (Cooldown dummy) to (Triggering unit)
-
Unit - Set level of Charged (Cooldown dummy) for (Triggering unit) to (Level of SC_Charged for (Triggering unit))
-
Unit - For Unit (Triggering unit), start cooldown of ability Charged (Cooldown dummy) " over "(Ability Cooldown of (Triggering unit) for ability SC_Charged, Level: SC_Charged_lvl.) seconds.
-
Unit - Remove Charged (pass) from (Casting unit)
-
Wait (Real((Integer((Ability Cooldown of (Triggering unit) for ability SC_Charged, Level: SC_Charged_lvl.))))) seconds
-
Custom script: call UnitRemoveAbility(u, 'A01I')
-
Custom script: call UnitAddAbility(u, 'A01J')
-
-
What happens is the following:
The dummy passive is added but my hero keeps the original. The CD that should be added is 15 for level 1 (15, 10, 5) but he always starts at 10 sec.
I already changed
-
Unit - Remove Charged (pass) from (Casting unit)
Anyone knows what i'm overlooking?
Thanks in advance