# Unit Count In Region With Alliance To Player

Grammar — Count of units in reg having alliance alliance with player player matching unitFilter, with at most count
FlagsNative | Function

Returns a count of units within the alliance filter specified.

# Arguments

  • int — Player
  • int<preset::UnitAlliance> — Alliance
  • region — Region
  • unitfilter — Unit Filter
  • int — Count

Returns — int

native int UnitCountAlliance(
	int player,
	int alliance,
	region r,
	unitfilter filter,
	int maxCount,
);

Category: Unit Group / Useful Unit Groups

# Examples

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:766


    // Implementation
    if ((UnitCountAlliance(UnitGetOwner(lp_warpPrism), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_warpPrism), 15.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 1) == 1) && (PointPathingPassable(UnitGetPosition(lp_warpPrism)) == true)) {
        UnitIssueOrder(lp_warpPrism, Order(AbilityCommand("PhasingMode", 0)), c_orderQueueReplace);
    }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:804


    // Implementation
    if ((UnitCountAlliance(UnitGetOwner(lp_overseer), c_unitAllianceAlly, RegionCircle(UnitGetPosition(lp_overseer), 15.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32)) | (1 << (c_targetFilterHasEnergy - 32))), 0) == 0)) {
        AISetUnitScriptControlled(lp_overseer, true);
        autoBB1BD4E0_val = UnitGetOwner(lp_overseer);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ptaldarim01.sc2map/MapScript.galaxy:3266

    UnitIssueOrder(lv_warpPrism, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(654)), c_orderQueueReplace);
    while ((libNtve_gf_UnitInRegion(lv_warpPrism, RegionCircle(PointFromId(654), 10.0)) == false) && (UnitIsAlive(lv_warpPrism) == true) && (UnitGetOwner(lv_warpPrism) != gv_pLAYER_01_USER)) {
        if ((UnitCountAlliance(gv_pLAYER_03_TAL_EAST, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lv_warpPrism), 9.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 1) == 1) && (PointPathingPassable(UnitGetPosition(lv_warpPrism)) == true)) {
            lv_enemyTriggered = true;
            UnitIssueOrder(lv_warpPrism, Order(AbilityCommand("PhasingMode", 0)), c_orderQueueReplace);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ptaldarim01.sc2map/MapScript.galaxy:3425

    UnitIssueOrder(lv_warpPrism, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(656)), c_orderQueueReplace);
    while ((libNtve_gf_UnitInRegion(lv_warpPrism, RegionCircle(PointFromId(656), 10.0)) == false) && (UnitIsAlive(lv_warpPrism) == true) && (UnitGetOwner(lv_warpPrism) != gv_pLAYER_01_USER)) {
        if ((UnitCountAlliance(gv_pLAYER_03_TAL_EAST, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lv_warpPrism), 9.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 1) == 1) && (PointPathingPassable(UnitGetPosition(lv_warpPrism)) == true)) {
            lv_enemyTriggered = true;
            UnitIssueOrder(lv_warpPrism, Order(AbilityCommand("PhasingMode", 0)), c_orderQueueReplace);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:766


    // Implementation
    if ((UnitCountAlliance(UnitGetOwner(lp_warpPrism), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_warpPrism), 15.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 1) == 1) && (PointPathingPassable(UnitGetPosition(lp_warpPrism)) == true)) {
        UnitIssueOrder(lp_warpPrism, Order(AbilityCommand("PhasingMode", 0)), c_orderQueueReplace);
    }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:804


    // Implementation
    if ((UnitCountAlliance(UnitGetOwner(lp_overseer), c_unitAllianceAlly, RegionCircle(UnitGetPosition(lp_overseer), 15.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32)) | (1 << (c_targetFilterHasEnergy - 32))), 0) == 0)) {
        AISetUnitScriptControlled(lp_overseer, true);
        autoBB1BD4E0_val = UnitGetOwner(lp_overseer);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim01.sc2mapMapScript.galaxy:3266

    UnitIssueOrder(lv_warpPrism, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(654)), c_orderQueueReplace);
    while ((libNtve_gf_UnitInRegion(lv_warpPrism, RegionCircle(PointFromId(654), 10.0)) == false) && (UnitIsAlive(lv_warpPrism) == true) && (UnitGetOwner(lv_warpPrism) != gv_pLAYER_01_USER)) {
        if ((UnitCountAlliance(gv_pLAYER_03_TAL_EAST, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lv_warpPrism), 9.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 1) == 1) && (PointPathingPassable(UnitGetPosition(lv_warpPrism)) == true)) {
            lv_enemyTriggered = true;
            UnitIssueOrder(lv_warpPrism, Order(AbilityCommand("PhasingMode", 0)), c_orderQueueReplace);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim01.sc2mapMapScript.galaxy:3425

    UnitIssueOrder(lv_warpPrism, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(656)), c_orderQueueReplace);
    while ((libNtve_gf_UnitInRegion(lv_warpPrism, RegionCircle(PointFromId(656), 10.0)) == false) && (UnitIsAlive(lv_warpPrism) == true) && (UnitGetOwner(lv_warpPrism) != gv_pLAYER_01_USER)) {
        if ((UnitCountAlliance(gv_pLAYER_03_TAL_EAST, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lv_warpPrism), 9.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 1) == 1) && (PointPathingPassable(UnitGetPosition(lv_warpPrism)) == true)) {
            lv_enemyTriggered = true;
            UnitIssueOrder(lv_warpPrism, Order(AbilityCommand("PhasingMode", 0)), c_orderQueueReplace);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:3163

        }

        if ((UnitCountAlliance(1, c_unitAllianceAlly, RegionEntireMap(), UnitFilter((1 << c_targetFilterAir), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) > 5)) {
            libCOUI_gf_CU_MutatorListShowNotification(StringExternal("Param/Value/lib_COMU_515BB76E"));
            libNtve_gf_CreateUnitsWithDefaultFacing(lv_count, "Scourge", 0, 3, lp_giftLocation);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:4233

    for ( ; ( (autoB400F7EB_ai >= 0 && lv_spawnAttempt <= autoB400F7EB_ae) || (autoB400F7EB_ai < 0 && lv_spawnAttempt >= autoB400F7EB_ae) ) ; lv_spawnAttempt += autoB400F7EB_ai ) {
        lv_riftLocation = RegionRandomPoint(RegionPlayableMap());
        if (((DistanceBetweenPoints(lv_riftLocation, PlayerStartLocation(1)) <= 30.0) || (DistanceBetweenPoints(lv_riftLocation, PlayerStartLocation(2)) <= 30.0) || (DistanceBetweenPoints(lv_riftLocation, PlayerStartLocation(1)) > lv_maxDistance) || (libCOOC_gf_CC_SpawnAllowedAtPoint(lv_riftLocation) == false) || (UnitCountAlliance(1, c_unitAllianceEnemy, RegionCircle(lv_riftLocation, 10.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) > 3) || (UnitGroupCount(UnitGroup(null, c_playerAny, RegionCircle(lv_riftLocation, 10.0), UnitFilter((1 << c_targetFilterHarvestableResource), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0) || (PointPathingIsConnected(lv_riftLocation, PlayerStartLocation(1)) == false) || (UnitGroupCount(UnitGroup("MutatorVoidRift", c_playerAny, RegionCircle(lv_riftLocation, 20.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0) || ((libCOOC_gf_CC_CurrentMap() == "AC_UlnarLocks") && (GameGetMissionTime() < 300.0) && (AIPathingCostMap(lv_riftLocation, PlayerStartLocation(lp_forPlayer)) > 70)))) {
            lv_riftLocation = null;
            continue;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:4640

    }

    if ((UnitCountAlliance(1, c_unitAllianceEnemy, RegionCircle(lp_spawnPoint, 7.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) > 0)) {
        return false;
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:6948

    while ((lv_spawnCount <= lv_maxSpawn) && (lv_spawnAttempt <= lv_maxSpawnAttempts)) {
        lv_spawnPoint = RegionRandomPoint(RegionEntireMap());
        if ((PointPathingIsConnected(lv_spawnPoint, PlayerStartLocation(1)) == true) && (PathingType(lv_spawnPoint) == c_pathingGround) && (VisIsVisibleForPlayer(1, lv_spawnPoint) == false) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 1.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 5.0), UnitFilter((1 << c_targetFilterHarvestableResource), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCountAlliance(1, c_unitAllianceEnemy, RegionCircle(lv_spawnPoint, 25.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) > 0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(1)) >= 30.0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(2)) >= 30.0) && (UnitCount("CelestialLock", c_playerAny, RegionCircle(lv_spawnPoint, 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount("DuelBubbleUnit", c_playerAny, RegionCircle(lv_spawnPoint, 15.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0)) {
            UnitCreate(1, lv_monsterType, 0, 3, lv_spawnPoint, libNtve_gf_RandomAngle());
            libCOMU_gf_CT_RegisterSpawnedUnit(UnitLastCreated());

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:7166

    while ((lv_spawnCount <= lv_maxSpawn) && (lv_spawnAttempt <= lv_maxSpawnAttempts)) {
        lv_spawnPoint = RegionRandomPoint(RegionEntireMap());
        if ((PointPathingIsConnected(lv_spawnPoint, PlayerStartLocation(1)) == true) && (PathingType(lv_spawnPoint) == c_pathingGround) && (VisIsVisibleForPlayer(1, lv_spawnPoint) == false) && (libCOOC_gf_CC_SpawnAllowedAtPoint(lv_spawnPoint) == true) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 1.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 10.0), UnitFilter((1 << c_targetFilterHarvestableResource), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCountAlliance(1, c_unitAllianceEnemy, RegionCircle(lv_spawnPoint, 25.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) > 0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(1)) >= 30.0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(2)) >= 30.0) && (UnitCount("CelestialLock", c_playerAny, RegionCircle(lv_spawnPoint, 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount("WidowMineBurrowed", c_playerAny, RegionCircle(lv_spawnPoint, 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount("SpiderMineBurrowed", c_playerAny, RegionCircle(lv_spawnPoint, 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount("DuelBubbleUnit", c_playerAny, RegionCircle(lv_spawnPoint, 15.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0)) {
            lv_widowMineSpawn = 0;
            lv_spiderMineSpawn = 0;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:10862

    while ((lv_spawnCount <= lv_maxSpawn) && (lv_spawnAttempt <= lv_maxSpawnAttempts)) {
        lv_spawnPoint = RegionRandomPoint(RegionEntireMap());
        if ((PointPathingIsConnected(lv_spawnPoint, PlayerStartLocation(1)) == true) && (PathingType(lv_spawnPoint) == c_pathingGround) && (libCOOC_gf_CC_SpawnAllowedAtPoint(lv_spawnPoint) == true) && (VisIsVisibleForPlayer(1, lv_spawnPoint) == false) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 5.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 10.0), UnitFilter((1 << c_targetFilterHarvestableResource), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCountAlliance(1, c_unitAllianceEnemy, RegionCircle(lv_spawnPoint, 25.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) > 0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(1)) >= 30.0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(2)) >= 30.0) && (UnitCount("CelestialLock", c_playerAny, RegionCircle(lv_spawnPoint, 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount("DuelBubbleUnit", c_playerAny, RegionCircle(lv_spawnPoint, 15.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0)) {
            UnitCreate(1, lv_monsterType, 0, 3, lv_spawnPoint, libNtve_gf_RandomAngle());
            lv_spawnCount += 1;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:10932

    while ((lv_spawnCount <= lv_maxSpawn) && (lv_spawnAttempt <= lv_maxSpawnAttempts)) {
        lv_spawnPoint = RegionRandomPoint(RegionEntireMap());
        if ((PointPathingIsConnected(lv_spawnPoint, PlayerStartLocation(1)) == true) && (PathingType(lv_spawnPoint) == c_pathingGround) && (VisIsVisibleForPlayer(1, lv_spawnPoint) == false) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 5.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 10.0), UnitFilter((1 << c_targetFilterHarvestableResource), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCountAlliance(1, c_unitAllianceEnemy, RegionCircle(lv_spawnPoint, 25.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) > 0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(1)) >= 30.0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(2)) >= 30.0) && (UnitCount("CelestialLock", c_playerAny, RegionCircle(lv_spawnPoint, 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount("DuelBubbleUnit", c_playerAny, RegionCircle(lv_spawnPoint, 15.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0)) {
            UnitCreate(1, lv_monsterType, 0, 3, lv_spawnPoint, libNtve_gf_RandomAngle());
            libCOMU_gf_CT_RegisterSpawnedUnit(UnitLastCreated());

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:11311

        for ( ; ( (autoF9AA7C4A_ai >= 0 && lv_safetyInt <= autoF9AA7C4A_ae) || (autoF9AA7C4A_ai < 0 && lv_safetyInt >= autoF9AA7C4A_ae) ) ; lv_safetyInt += autoF9AA7C4A_ai ) {
            lv_spawnLocation = RegionRandomPoint(lv_spawnRegion);
            if (((PathingType(lv_spawnLocation) != c_pathingGround) || (RegionContainsPoint(libCOMU_gf_CT_MutatorSafetyZone(), lv_spawnLocation) == true) || (UnitCountAlliance(3, c_unitAllianceEnemy, RegionCircle(lv_spawnLocation, 50.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0))) {
                continue;
            }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:11494

        for ( ; ( (autoEB25DD61_ai >= 0 && lv_safetyInt <= autoEB25DD61_ae) || (autoEB25DD61_ai < 0 && lv_safetyInt >= autoEB25DD61_ae) ) ; lv_safetyInt += autoEB25DD61_ai ) {
            lv_spawnLocation = RegionRandomPoint(lv_spawnRegion);
            if (((PathingType(lv_spawnLocation) != c_pathingGround) || (libCOOC_gf_CC_SpawnAllowedAtPoint(lv_spawnLocation) == false) || (RegionContainsPoint(libCOMU_gf_CT_MutatorSafetyZone(), lv_spawnLocation) == true) || (UnitCountAlliance(3, c_unitAllianceEnemy, RegionCircle(lv_spawnLocation, 1.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) > 0) || (UnitCountAlliance(3, c_unitAllianceEnemy, RegionCircle(lv_spawnLocation, 35.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0))) {
                continue;
            }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:11494

        for ( ; ( (autoEB25DD61_ai >= 0 && lv_safetyInt <= autoEB25DD61_ae) || (autoEB25DD61_ai < 0 && lv_safetyInt >= autoEB25DD61_ae) ) ; lv_safetyInt += autoEB25DD61_ai ) {
            lv_spawnLocation = RegionRandomPoint(lv_spawnRegion);
            if (((PathingType(lv_spawnLocation) != c_pathingGround) || (libCOOC_gf_CC_SpawnAllowedAtPoint(lv_spawnLocation) == false) || (RegionContainsPoint(libCOMU_gf_CT_MutatorSafetyZone(), lv_spawnLocation) == true) || (UnitCountAlliance(3, c_unitAllianceEnemy, RegionCircle(lv_spawnLocation, 1.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) > 0) || (UnitCountAlliance(3, c_unitAllianceEnemy, RegionCircle(lv_spawnLocation, 35.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0))) {
                continue;
            }