Magazette2
New Member
- Reaction score
- 3
Code:
Guistaro
Events
Unit - A unit enters (Playable map area)
Conditions
(Unit-type of (Triggering unit)) Equal to Ferrer
Actions
Set Guistaro = (Triggering unit)
Trigger - Turn on Aura <gen>
Trigger - Turn off (This trigger)
Code:
Aura
Events
Unit - A unit Dies
Conditions
(Level of Guistaro Aura for Guistaro) Greater than 0
(Distance between (Position of (Triggering unit)) and (Position of Guistaro)) Less than or equal to 900.00
Actions
Unit - Explode (Triggering unit)
Set Guistaro_position = (Position of (Triggering unit))
Set Guistaro_group = (Units within 225.00 of Guistaro_position matching ((((Triggering unit) is A structure) Not equal to True) and (((Matching unit) belongs to an enemy of (Owner of Guistaro)) Equal to True)))
Unit Group - Pick every unit in Guistaro_group and do (Actions)
Loop - Actions
Unit - Cause Guistaro to damage (Picked unit), dealing (15.00 + (5.00 x (Real((Level of Guistaro Aura for Guistaro))))) damage of attack type Spells and damage type Normal
Custom script: call RemoveLocation (udg_Guistaro_position)
Custom script: call DestroyGroup (udg_Guistaro_group)