Hey people, can someone tell me what's wrong with my trigger?
I want the hero to cast an ability. If he kills a unit with it, the cooldown is reset. If he doesn't kill a unit, the cooldown isn't reset.
I want the hero to cast an ability. If he kills a unit with it, the cooldown is reset. If he doesn't kill a unit, the cooldown isn't reset.
-
KBReset
-
Events
- Unit - A unit Finishes casting an ability
-
Conditions
- (Ability being cast) Equal to Killing Blow
- Actions
-
If - Conditions
- ((Target unit of ability being cast) is dead) Equal to True
-
Then - Actions
- Set KBinteger = (Level of Killing Blow for (Triggering unit))
- Unit - Remove Killing Blow from (Triggering unit)
- Wait 0.01 seconds
- Unit - Add Killing Blow to (Triggering Unit)
- Unit - Set level of Killing Blow for (Triggering unit) to KBinteger
-
Else - Actions
- Do nothing
-
Events
Last edited by a moderator: