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

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