Hi,
i had the idea of making a spell which could drain all units mana in range and then giving the total mana drained to the hero.
So my first thought was to base it on starfall (No special reason) and then make a trigger with some real variable to set the total mana.
Event: Unit cast an ability
Condition: ability being cast equal to [spell]
Actions: pick every unit in range of [casting hero] and do actions:
Set [mana variable] = (Mana of(Picked unit))
Set mana of picked unit to 0
Set mana of [casting hero] to mana of [casting hero] +[mana variable]
The problem with this trigger is that he only sets the mana variable to 1 picked unit.
so my question is: how can i make it work?
Thx in advance
i had the idea of making a spell which could drain all units mana in range and then giving the total mana drained to the hero.
So my first thought was to base it on starfall (No special reason) and then make a trigger with some real variable to set the total mana.
Event: Unit cast an ability
Condition: ability being cast equal to [spell]
Actions: pick every unit in range of [casting hero] and do actions:
Set [mana variable] = (Mana of(Picked unit))
Set mana of picked unit to 0
Set mana of [casting hero] to mana of [casting hero] +[mana variable]
The problem with this trigger is that he only sets the mana variable to 1 picked unit.
so my question is: how can i make it work?
Thx in advance