Unit - A unit Starts the effect of an ability
((Unit-type of (Triggering unit)) Equal to Unit1) or ((Unit-type of (Triggering unit)) Equal to Unit2)
(Ability being cast) Equal to Mines
Set TempRegion = Mine Field <gen>
Set TempPoint = (Center of TempRegion)
Set TempPoint2 = (Position of (Triggering unit))
Region - Center TempRegion on TempPoint
Unit - Create 1 Mine for (Owner of (Triggering unit)) at (Random point in Mine Field <gen>) facing Default building facing degrees
Custom script: call RemoveLocation (udg_TempPoint)
Custom script: call RemoveRect(udg_TempRegion) //Region
Custom script: call RemoveLocation (udg_TempPoint2)
Leak is:
(Line: 8) (Word: 11) Location Leak
Unit - Create 1 Mine for (Owner of (Triggering unit)) at (Random point in Mine Field <gen>) facing Default building facing degrees
Unit - Create 1 Mine for (Owner of (Triggering unit)) at ^Leak
((Unit-type of (Triggering unit)) Equal to Unit1) or ((Unit-type of (Triggering unit)) Equal to Unit2)
(Ability being cast) Equal to Mines
Set TempRegion = Mine Field <gen>
Set TempPoint = (Center of TempRegion)
Set TempPoint2 = (Position of (Triggering unit))
Region - Center TempRegion on TempPoint
Unit - Create 1 Mine for (Owner of (Triggering unit)) at (Random point in Mine Field <gen>) facing Default building facing degrees
Custom script: call RemoveLocation (udg_TempPoint)
Custom script: call RemoveRect(udg_TempRegion) //Region
Custom script: call RemoveLocation (udg_TempPoint2)
Leak is:
(Line: 8) (Word: 11) Location Leak
Unit - Create 1 Mine for (Owner of (Triggering unit)) at (Random point in Mine Field <gen>) facing Default building facing degrees
Unit - Create 1 Mine for (Owner of (Triggering unit)) at ^Leak