So I was testing out what I expected to be a relatively simple spell earlier today and was surprised to run into odd results and bugs I can't solve so far despite trying a whole bunch of minor tweaks and tests.
The spell (Clarity) is basically a super mode that eliminates the cooldown on all the hero's other spells for its duration. Clarity itself is not meant to have its cooldown reset, however.
Here is my trigger as it now stands once again:
Anyway, the spell works exactly as planned when it is cast- all cooldowns OTHER than its own are reset.
However, casting some other spell then resets ALL cooldowns (not just all other than Clarity). Fiddling around with adding wait times and so on before re-enabling Clarity produced some different results but didn't solve the problem.
What I'm really scratching my head over is why the same trigger does not reset Clarity when Clarity is cast but DOES reset Clarity when some other spell is cast.
The spell (Clarity) is basically a super mode that eliminates the cooldown on all the hero's other spells for its duration. Clarity itself is not meant to have its cooldown reset, however.
Here is my trigger as it now stands once again:
-
Clarity Cast
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Ability being cast) Equal to Clarity
-
((Triggering unit) has buff Clarity ) Equal to True
-
-
-
-
Actions
-
Player - Disable Clarity for (Owner of Reinherarch)
-
Unit - Reset ability cooldowns for Reinherarch
-
Player - Enable Clarity for (Owner of Reinherarch)
-
-
Anyway, the spell works exactly as planned when it is cast- all cooldowns OTHER than its own are reset.
However, casting some other spell then resets ALL cooldowns (not just all other than Clarity). Fiddling around with adding wait times and so on before re-enabling Clarity produced some different results but didn't solve the problem.
What I'm really scratching my head over is why the same trigger does not reset Clarity when Clarity is cast but DOES reset Clarity when some other spell is cast.