• 🏆 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!

[Spell] Random aoe Unit pick and check

Status
Not open for further replies.
Level 5
Joined
Feb 18, 2016
Messages
96
Hello

I need some help with a trigger i couldn't complete for an ability

The ability is target to a point
When cast it creates a dummy and pick one random enemy organic unit in a range (prioritize heroes) and starts damaging it every second

If the unit leaves the maximum area the dummy will check for another unit nearby

All of this spell works perfectly fine but the problem comes when it checks for nearby units with all these conditions

It seems really easy but i could not make it work

Sometimes it the dummy picks himself, sometimes does nothing
 
Status
Not open for further replies.
Top