K
Kerberos
Guest
Now, I don't know what bj_wantDestroyGroup does, so I'm going to remove it from my suggested change. It could be that this works better with it equal to True, though.
Just to make sure I know what this is supposed to do: every 2 seconds, it orders all units owned by Brown that are within 800 of Totem to attack Totem, right?
LeakGroup is a unit group variable. This spell is multi-unit incastable (MUI).
Just to make sure I know what this is supposed to do: every 2 seconds, it orders all units owned by Brown that are within 800 of Totem to attack Totem, right?
LeakGroup is a unit group variable. This spell is multi-unit incastable (MUI).
Code:
Totem Lure
Events
Time - Every 2.00 seconds of game time
Conditions
Actions
Set LeakGroup = All units in (Playable map area) matching (((Matching unit) is within 800.00 of Totem) and (Owner of (Matching unit) Equal to Player 12 (Brown))
Unit Group - Pick every unit in LeakGroup and do (Actions)
Loop - Actions
Order (Picked unit) to Attack Totem
Custom script: call DestroyGroup( udg_LeakGroup )
Set TotemDuration = (TotemDuration + 2)
If (TotemDuration is Greater than 45) then do (Turn off (This trigger)) else do (Do nothing)