- Joined
- Sep 9, 2007
- Messages
- 6,759
JASS:
scope Sc1 initializer Init
globals
private player PID
endglobals
private function Conditions takes nothing returns boolean
return IsUnitEnemy(GetFilterUnit(),PID) == true
endfunction
private function f1 takes nothing returns nothin
local unit target = GetSpellTargetUnit()
local real x = GetUnitX(target)
local real y = GetUnitY(target)
local group g
set PID = GetOwningPlayer(caster)
set g = GroupEnumUnitsInRange (g, x, y, 256.00, Condition(function Conditions))
call DestroyGroup(g)
set g = null
set target = null
endfunction
endscope
JASS:
set g = GroupEnumUnitsInRange (g, x, y, 256.00, Condition(function Conditions))