Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
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.