Lumber Based
This Works!!!! (I HAVE TESTED)
This is a Lumber based version of what you want
Make 3 triggers...
Make a Critical ability with (0) in everything
(so the critical dosent work)
___Trigger 1___
[Events]
Unit - A unit Learns a skill
[Conditions]
(Learned Hero Skill)Equal to (name of ability)
((Triggering unit)is A Hero)Equal to True
[Actions]
Trigger - Turn on Trigger 2<gen>
Wait 1.00 seconds
Trigger - Turn off Trigger 2<gen>
------------------------------------------
___Trigger 2___ (this trigger is Instally Off)
[Events]
Player - Player 1 (Red)'s Curret lumber becomes Greater than or Equal to 40.00
[Conditions]
Blank
[Actions]
Hero - Modify Agility of <Unit of your choice>: add 1
Wait 0.10 seconds
Player - Set Player 1 (Red) Curret lumber to 0
-------------------------------------------
___Trigger 3___
[Event]
Unit - A unit Dies
[Conditions]
Blank
[Actions]
Player - Add 1 to (Owner of (Killing unit))Curret lumber
Hopes this works out for you