GroupEnumUnitsOfPlayer(ENUM_GROUP,players[9],Filter(() -> begin
            int randomInt = GetRandomInt(0,8)
            if randomInt == 8
                randomInt = PLAYER_NEUTRAL_AGGRESSIVE
            bj_wantDestroyGroup = false
            GroupEnumUnitsOfPlayer(ENUM_GROUP2,players[randomInt], Filter(() -> GetFilterUnit().isAlive() ))
            GetFilterUnit().issuePointOrder("attack", GroupPickRandomUnit(ENUM_GROUP2).getPos())
            ENUM_GROUP2.clear()
        end))

goto line:
Compare with:
text copy window edit this code post new code