- Joined
- Feb 9, 2009
- Messages
- 1,800
Hello, tried to make an AOE spell that deals damage divided by the number of units in the group.
My problem is that the corpses are being counted with this group despite being conditioned out of it.
- (Matching Unit) is alive equal to true.
- (Matching Unit) is dead equal to false.
My problem is that the corpses are being counted with this group despite being conditioned out of it.
-
Set EL_Damage_Group = (Units within EL_Damage_Area_of_Effect of EL_Targeted_Location matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to
-
Unit Group - Pick every unit in EL_Damage_Group and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in EL_Damage_Group) Less than 2
-
-
Then - Actions
-
Unit - Cause EL_Caster to damage (Picked unit), dealing (EL_Total_Damage x 1.50) damage of attack type Spells and damage type Magic
-
-
Else - Actions
-
Unit - Cause EL_Caster to damage (Picked unit), dealing (EL_Total_Damage / (Real((Number of units in EL_Damage_Group)))) damage of attack type Spells and damage type Magic
-
-
-
Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Weapons\Bolt\BoltImpact.mdl
-
Special Effect - Destroy (Last created special effect)
-
-
- (Matching Unit) is alive equal to true.
- (Matching Unit) is dead equal to false.
Last edited: