🏆 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!
It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!
Gonna explain all of those function:
1. local unit Target = GetSpellTargetUnit() is setting local variable of "Target" by setting Target = (Target unit of ability being cast)
2. call UnitAddAbility(Target, 'A002') is giving the spell book ability to the "Target" (A002 is the Spell Book ability ID)
3. call TriggerSleepAction(10.00) is Wait for 10 seconds (this will make the trigger MUI because we use local variable
4. call UnitRemoveAbility(Target, 'A002') is removing the spell book ability from the "Target"
5. set Target = null is cleaning "leak" in JASS (even setting a unit variable, we will need to null/clean it)
Different abilities of this type stack up and it also has the same glitch as max life/max mana bonus where you can set the ability's level on a unit without it updating the bonus but subtracting the new level's value when the ability is removed.
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.