Im trying to create a spell based off of sunder from WoW (no it isnt for a cheesy WoW rpg map dont worry ) or similarily Bristlebacks Viscous Nasal Goo from DotA.
For anyone who isnt familiar with either of these pretty much it would be like Faerie Fire as in it reduces the enemies armor, but its able to stack as in each time you cast it on the enemy it decreases their armor by even more. i.e. level 1 faerie fire reduces armor by 1, when you cast it a second time within the debuff expiration timer the enemies armor is reduced by 2, cast it again and its reduced by 3 etc etc...
Also I'd ideally like to set some kind of limit, i.e. you can only stack it 5 times.
I havent used WE for about a year so I may be missing a very easy way to do this, but the best route I could come up with is something along the lines of creating a dummy unit to cast different rank faerie fires on the enemy. However I couldnt figure how to find the level of the current debuff on the enemy, so I wouldnt know how far along the stack is, hoping theres a function in JASS... I guess its possible to use many variables or timers per unit and keep track of how many have been faerie fires ave been stacked, but that seems very long and complicated, but if there isnt an easier way wouldnt mind some help setting that up..
Thanks.
For anyone who isnt familiar with either of these pretty much it would be like Faerie Fire as in it reduces the enemies armor, but its able to stack as in each time you cast it on the enemy it decreases their armor by even more. i.e. level 1 faerie fire reduces armor by 1, when you cast it a second time within the debuff expiration timer the enemies armor is reduced by 2, cast it again and its reduced by 3 etc etc...
Also I'd ideally like to set some kind of limit, i.e. you can only stack it 5 times.
I havent used WE for about a year so I may be missing a very easy way to do this, but the best route I could come up with is something along the lines of creating a dummy unit to cast different rank faerie fires on the enemy. However I couldnt figure how to find the level of the current debuff on the enemy, so I wouldnt know how far along the stack is, hoping theres a function in JASS... I guess its possible to use many variables or timers per unit and keep track of how many have been faerie fires ave been stacked, but that seems very long and complicated, but if there isnt an easier way wouldnt mind some help setting that up..
Thanks.