• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] UnitGroup

Status
Not open for further replies.
Level 2
Joined
Aug 20, 2007
Messages
12
hi,

i have a problem with my self created Spell. It should banish all units within 600 Range. But sometimes it doesnot work. Sometimes it banish one enemy and sometimes it banish all units.

Here is the Trigger:

A Unit cast Spell
ability = Evanesco
Action:
Pick every Unit within 600 Range of (Point of (Casting Unit)) matching (((matching Unit) = Building = false)(matching Unit is alive))
Loop
Unit - Create 1 Spell-Dummy to Point of Picked Unit
Unit - Add Evansco-Casterspell to (Last Created Unit)
Unit - Last Created Unit use Vanish at (Picked Unit)
Unit - Set Expiration Timer of 4 Sekunden to Last Created Unit

What can I do?

And if i added a Condition like <(Matching Unit) is an ally of (Casting Unit) = false> then the spell doesnot work. why?

sorry for my bad english ;-)
 
Status
Not open for further replies.
Top