Just so you know how Defskull's system works (maybe, haven't checked it out - sorry <3): it either abuses a bug in Warcraft, or it uses binary stuff (you can create all numbers with the binary system - and with prime numbers, and fibonacci numbers and all that, but binary is easier to use
).
The easiest (in your case) is to abuse the bug.
1) Create an ability based on "Item Mana Bonus" (now I know you said it didn't work, easy! It will soon enough
).
2) Give the ability 2 levels, set level 1 to +5 mana, set level 2 to +0 mana.
3) Use this trigger:
-
Unit - Add Item Mana Bonus (Custom) to Hero
-
Unit - Increase level of Item Mana Bonus (Custom) for Hero
-
Unit - Remove Item Mana Bonus (Custom) from Hero
The bug goes as follows: levels don't work for the mana and HP bonus abilities. They only get HP/mana according to the first level (which is 5, so the max mana increases by 5).
However, when the ability is removed, it will remove the amount of mana for the current spell level (since at level 2 the ability gives +0 mana, 0 mana is removed).
Do this every time you wish to add 5 mana.
You can use
-
For each (Integer A) from 1 to (Level of Spell for (Triggering unit)), do (Actions)
-
Loop - Actions
-
Unit - Add Item Mana Bonus (Custom) to (Triggering unit)
-
Unit - Increase level of Item Mana Bonus (Custom) for (Triggering unit)
-
Unit - Remove Item Mana Bonus (Custom) from (Triggering unit)
To give the right amount of mana according to the spell's level.