- Joined
- Feb 4, 2009
- Messages
- 1,314
JASS:
function DamageValidEnemy takes nothing returns boolean
if IsUnitEnemy( GetFilterUnit(), GetOwningPlayer(udg_u) ) then
call UnitDamageTargetBJ( udg_u , GetFilterUnit(), udg_dmg, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endif
return false
endfunction
function DamageAoE takes unit u, real dmg, real aoe, real buildingfactor returns nothing
set udg_u = u
set udg_dmg = dmg
call GroupEnumUnitsInRange(udg_g,GetUnitX(u),GetUnitY(u),aoe,Condition(function DamageValidEnemy))
set u = null
endfunction
first I wanted to ask soemthing else but then I found the mistake but the thread was already created....
note: I have JNGP but I prefer the normal WE cause our pcs at school detect it as a hack and make it impossible to work with it