I'm trying to get a mana drain tower to work properly and so far I have it mostly smooth except I am having trouble transfering the mana from the dummy to the tower itself.
Also I left out the leak cleanup triggers here because they just clutter it up. Once I have it working I'll add those back in.
-
DrainDummy
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-


(Ability being cast) Equal to Mana Drain (Curse)
-


((Attacked unit) has buff Cripple) Equal to False
-
-

Actions
-


Set ManadrainLoc = (Position of (Triggering unit))
-


Unit - Create 1 ManaDrainDummy for (Owner of (Triggering unit)) at ManadrainLoc facing Default building facing degrees
-


Unit - Order (Last created unit) to Human Blood Mage - Siphon Mana (Target unit of ability being cast)
-


Unit Group - Add (Last created unit) to ManaDrainDummies
-


Unit Group - Pick every unit in ManaDrainDummies and do (Actions)
-



Loop - Actions
-




Trigger - Add to GiveManaBeam <gen> the event (Unit - (Picked unit)'s mana becomes Greater than or equal to 10.00)
-
-
-
-
-
GiveManaBeam
-

Events
-

Conditions
-

Actions
-


Set ManadrainLoc = (Position of (Triggering unit))
-


Unit Group - Pick every unit in (Units within 32.00 of ManadrainLoc) and do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Unit-type of (Picked unit)) Equal to Mana Drain Tower
-
-





Then - Actions
-






Unit - Set mana of (Picked unit) to ((Mana of (Triggering unit)) + (Mana of (Picked unit)))
-
-





Else - Actions
-
-
-
-
-
Also I left out the leak cleanup triggers here because they just clutter it up. Once I have it working I'll add those back in.
