[Solved] spell triggering problem
i was trying to make some aoe banish spell but it turns out very wrong. i test it with shadows and you see... it stacks a hundred times.
the trigger is:
edit: should have condition ability being cast (so dumb of me)
i was trying to make some aoe banish spell but it turns out very wrong. i test it with shadows and you see... it stacks a hundred times.
the trigger is:
-
Events
- Unit - a unit starts the effect of an ability
- Conditions
-
Actions
-
Unit Group - Pick every units in (Units within 400 of (target point of ability being cast) and do actions
-
Loop - Actions
-
Multiple Condition if (All conditions is true) then do (Then actions) else do (Else actions)
-
If - Conditions
- ((Picked Unit) belongs to an enemy of (Owner of (Casting Unit))) Equal to True
-
Then - Actions
- Unit - Create 1 Dummy for (Owner of(Casting Unit)) facing default degrees
- Unit - Add a 1 second Generic timer to (Last Created Unit)
- Unit - Add DummySpell to (Last Created Unit)
- Unit - Order (Last Created Unit) to banish (Picked Unit)
- Unit Group - Remove (Picked Unit) from (Last Created Unit Group)
- Else - Actions
-
If - Conditions
-
Multiple Condition if (All conditions is true) then do (Then actions) else do (Else actions)
-
Loop - Actions
-
Unit Group - Pick every units in (Units within 400 of (target point of ability being cast) and do actions
edit: should have condition ability being cast (so dumb of me)