Hi,
I have made this simple Target Area spell that deals damage to enemies caught within. (Bottom)
But it leaks somehow. It deals the damage to enemies within the area. But if a enemy unit dies from the trigger, the others caught will not take damage.
Is it something with the arrangements of the trigger?
How would you suggest it then?
I have made this simple Target Area spell that deals damage to enemies caught within. (Bottom)
But it leaks somehow. It deals the damage to enemies within the area. But if a enemy unit dies from the trigger, the others caught will not take damage.
Is it something with the arrangements of the trigger?
How would you suggest it then?
-
Ice Nova
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Apprentice (Ice Nova)
-
Actions
- Set ASpell_Caster = (Triggering unit)
- Set ASpell_Point = (Target point of ability being cast)
-
Unit Group - Pick every unit in (Units within 300.00 of ASpell_Point) and do (Actions)
-
Loop - Actions
- Set ASpell_AreaTarget_Enemy = (Picked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (ASpell_AreaTarget_Enemy is A structure) Equal to False
- (ASpell_AreaTarget_Enemy belongs to an enemy of (Owner of ASpell_Caster)) Equal to True
- (ASpell_AreaTarget_Enemy is Magic Immune) Equal to False
- (ASpell_AreaTarget_Enemy is dead) Equal to False
-
Then - Actions
- Unit - Cause ASpell_Caster to damage ASpell_AreaTarget_Enemy, dealing (0.90 x (Real((Intelligence of ASpell_Caster (Include bonuses))))) damage of attack type Spells and damage type Normal
- Else - Actions
-
If - Conditions
-
Loop - Actions
- Custom script: call RemoveLocation (udg_ASpell_Point)
-
Events