This trigger works properly except for the thing that it only damages 1 target (Because of the set mana to 0).
Now my question is, how do i make this work properly?
Now my question is, how do i make this work properly?
-
Frozen Land Work
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Frozen land
-
-

Actions
-


Set VariableSet Frozenland_Group = (Units within Frozenland_Area[(Level of Frozen land for (Triggering unit))] of (Position of (Triggering unit)).)
-


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



Loop - Actions
-




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





If - Conditions
-






((Picked unit) is alive) Equal to True
-






((Picked unit) belongs to an enemy of (Owner of (Triggering unit)).) Equal to True
-
-





Then - Actions
-






Unit - Cause (Triggering unit) to damage (Picked unit), dealing ((Mana of (Triggering unit)) + (Real(FrozenLand_DMG[(Level of Frozen land for (Triggering unit))]))) damage of attack type Chaos and damage type Normal
-






Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
-






Special Effect - Destroy (Last created special effect)
-






Unit - Set mana of (Triggering unit) to 0.00
-
-





Else - Actions
-
-
-
-


Custom script: call DestroyGroup (udg_Frozenland_Group)
-
-



