- Joined
- Jun 2, 2009
- Messages
- 1,137
-
Rotten Trap
-
Events
- Unit - A unit Dies
-
Conditions
- (Unit-type of (Dying unit)) Equal to Rotten Trap unit
-
Actions
- Set TempPoint = (Position of (Dying unit))
- Set TempGroup = (Units within 400.00 of TempPoint)
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) belongs to an enemy of (Owner of Hero_Makrura)) Equal to True
- ((Picked unit) is A structure) Equal to False
- ((Picked unit) is Mechanical) Equal to False
- ((Picked unit) is alive) Equal to True
- ((Picked unit) is Magic Immune) Equal to False
-
Then - Actions
- Unit - Cause (Dying unit) to damage (Picked unit), dealing (Real((Intelligence of Hero_Makrura (Include bonuses)))) damage of attack type Spells and damage type Magic
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_TempPoint)
- Custom script: call DestroyGroup(udg_TempGroup)
-
Events
Update: Solved. There was 2 Rotten Trap unit...
Last edited: