🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
ahk...but i have never used jass before how would make it that it only lasts for 180 secounds? or hyow to make it to change the attributes when the spell is cast
You can just wait 180 seconds then remove the bonuses using clearBonus(). To set bonuses, call the function setBonus(). The first argument is the magnitude of the bonus, the second argument is the unit receiving the bonus, and the third argument is an integer that corresponds to the type of bonus.
0: damage
1: armor
2: hitpoints
3: mana
So, if I wanted to add a 300 hp bonus to a unit saved under variable udg_Hero, i would do:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.