Drenferalis
New Member
- Reaction score
- 0
This is where the issue is.
JASS:
local unit array kunit[1000]
local integer key = 0
loop
if (IsUnitAliveBJ(kunit[key]) == false ) then
set kunit[key] = null
endif
if( kunit[key] == GetAttackedUnitBJ() ) then
return
elseif ( kunit[key] == null) then
set kunit[key] = GetAttackedUnitBJ()
endif
exitwhen kunit[key] = GetAttackedUnitBJ()
set key = key + 1
endloop