Okay, I've finished a skill that increases critical chance per hit, currently what I did looks like this:
disabled spellbook (skill with 100 lvls inside)
trigger1->When hero attacks, increase skill inside spellbook. (Stops at lvl 100)
trigger2->When hero is issued any order other than attack, set skill inside spellbook to lvl 1.
It works fine until the hero is stunned, even receiving no further orders the skill resets back to lvl1 when the hero resumes attacking. My question is, how can I make this "counter" not reset when the hero is disabled?
I tought of making a dummy that had the skill as an aura that targets the player heroes and relocating the dummy next to the player every 0.01 seconds, I searched in the forums but someone said that this is very ineficient, also critical strike is not an aura. Suggestions?
disabled spellbook (skill with 100 lvls inside)
trigger1->When hero attacks, increase skill inside spellbook. (Stops at lvl 100)
trigger2->When hero is issued any order other than attack, set skill inside spellbook to lvl 1.
It works fine until the hero is stunned, even receiving no further orders the skill resets back to lvl1 when the hero resumes attacking. My question is, how can I make this "counter" not reset when the hero is disabled?
I tought of making a dummy that had the skill as an aura that targets the player heroes and relocating the dummy next to the player every 0.01 seconds, I searched in the forums but someone said that this is very ineficient, also critical strike is not an aura. Suggestions?