# Unit Type Attribute Check

Grammaru|Unit Type has attributeType attribute
FlagsNative | Function

Returns true if the unit has the specified attribute.

# Arguments

  • string<gamelink::Unit> — Unit
  • int<preset::AttributeType> — Attribute Type

Returns — bool

native bool UnitTypeTestAttribute(
	string inUnitType,
	int inAttribute,
);

Category: Unit / Properties

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:4220

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:3405

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:3338

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnitProgressUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:1252

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:1337

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:1417

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:4275

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus04.sc2map/MapScript.galaxy:2594

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:452

    // Implementation
    libNtve_gf_RescueUnit(lp_rescuedUnit, gv_p01_USER, true);
    if ((UnitTypeTestAttribute(UnitGetType(lp_rescuedUnit), c_unitAttributeStructure) == true)) {
        gv_statStructuresRescued += 1;
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:2540

            libNtve_gf_RescueUnit(autoC91771D7_var, gv_p01_USER, true);
            UnitGroupRemove(gv_factoryAllUnits, autoC91771D7_var);
            if ((UnitTypeTestAttribute(UnitGetType(autoC91771D7_var), c_unitAttributeStructure) == true)) {
                gv_statStructuresRescued += 1;
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:2590

            libNtve_gf_RescueUnit(auto85840440_var, gv_p01_USER, true);
            UnitGroupRemove(gv_factoryAllUnits, auto85840440_var);
            if ((UnitTypeTestAttribute(UnitGetType(auto85840440_var), c_unitAttributeStructure) == true)) {
                gv_statStructuresRescued += 1;
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:2717

            libNtve_gf_RescueUnit(auto6928B596_var, gv_p01_USER, true);
            UnitGroupRemove(gv_starportAllUnits, auto6928B596_var);
            if ((UnitTypeTestAttribute(UnitGetType(auto6928B596_var), c_unitAttributeStructure) == true)) {
                gv_statStructuresRescued += 1;
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:2767

            libNtve_gf_RescueUnit(auto8C1E2B92_var, gv_p01_USER, true);
            UnitGroupRemove(gv_starportAllUnits, auto8C1E2B92_var);
            if ((UnitTypeTestAttribute(UnitGetType(auto8C1E2B92_var), c_unitAttributeStructure) == true)) {
                gv_statStructuresRescued += 1;
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:1562

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:3787

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7526

    UnitIssueOrder(lv_unit, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(lv_unit), 10.0, lv_angle)), c_orderQueueReplace);
    Wait(RandomFixed(1.0, 1.5), c_timeGame);
    if ((UnitTypeTestAttribute(UnitGetType(lv_unit), c_unitAttributeStructure) == false)) {
        UnitGroupAdd(gv_panickedGroup, lv_unit);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul04.sc2map/MapScript.galaxy:850

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) != true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:880

    // Conditions
    if (testConds) {
        if (!((UnitTypeTestAttribute(UnitGetType(EventUnitProgressUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:968

    else {
    }
    if ((UnitGetOwner(EventUnit()) == gv_p3_ENEMY_PROTOSS) && (UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true) && (gv_countProtossBuildings == true)) {
        gv_protossStructures -= 1;
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2mapMapScript.galaxy:4220

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2mapMapScript.galaxy:3405

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2mapMapScript.galaxy:3338

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnitProgressUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2mapMapScript.galaxy:1252

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2mapMapScript.galaxy:1337

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2mapMapScript.galaxy:1417

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2mapMapScript.galaxy:4275

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus04.sc2mapMapScript.galaxy:2594

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:452

    // Implementation
    libNtve_gf_RescueUnit(lp_rescuedUnit, gv_p01_USER, true);
    if ((UnitTypeTestAttribute(UnitGetType(lp_rescuedUnit), c_unitAttributeStructure) == true)) {
        gv_statStructuresRescued += 1;
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:2540

            libNtve_gf_RescueUnit(autoC91771D7_var, gv_p01_USER, true);
            UnitGroupRemove(gv_factoryAllUnits, autoC91771D7_var);
            if ((UnitTypeTestAttribute(UnitGetType(autoC91771D7_var), c_unitAttributeStructure) == true)) {
                gv_statStructuresRescued += 1;
            }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:2590

            libNtve_gf_RescueUnit(auto85840440_var, gv_p01_USER, true);
            UnitGroupRemove(gv_factoryAllUnits, auto85840440_var);
            if ((UnitTypeTestAttribute(UnitGetType(auto85840440_var), c_unitAttributeStructure) == true)) {
                gv_statStructuresRescued += 1;
            }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:2717

            libNtve_gf_RescueUnit(auto6928B596_var, gv_p01_USER, true);
            UnitGroupRemove(gv_starportAllUnits, auto6928B596_var);
            if ((UnitTypeTestAttribute(UnitGetType(auto6928B596_var), c_unitAttributeStructure) == true)) {
                gv_statStructuresRescued += 1;
            }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:2767

            libNtve_gf_RescueUnit(auto8C1E2B92_var, gv_p01_USER, true);
            UnitGroupRemove(gv_starportAllUnits, auto8C1E2B92_var);
            if ((UnitTypeTestAttribute(UnitGetType(auto8C1E2B92_var), c_unitAttributeStructure) == true)) {
                gv_statStructuresRescued += 1;
            }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2mapMapScript.galaxy:1562

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2mapMapScript.galaxy:3787

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2mapMapScript.galaxy:7526

    UnitIssueOrder(lv_unit, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(lv_unit), 10.0, lv_angle)), c_orderQueueReplace);
    Wait(RandomFixed(1.0, 1.5), c_timeGame);
    if ((UnitTypeTestAttribute(UnitGetType(lv_unit), c_unitAttributeStructure) == false)) {
        UnitGroupAdd(gv_panickedGroup, lv_unit);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul04.sc2mapMapScript.galaxy:850

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) != true))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2mapMapScript.galaxy:880

    // Conditions
    if (testConds) {
        if (!((UnitTypeTestAttribute(UnitGetType(EventUnitProgressUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2mapMapScript.galaxy:968

    else {
    }
    if ((UnitGetOwner(EventUnit()) == gv_p3_ENEMY_PROTOSS) && (UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true) && (gv_countProtossBuildings == true)) {
        gv_protossStructures -= 1;
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/MapScript.galaxy:4951

        auto95B16F81_var = UnitGroupUnitFromEnd(auto95B16F81_g, auto95B16F81_u);
        if (auto95B16F81_var == null) { break; }
        if ((UnitTypeTestAttribute(UnitGetType(auto95B16F81_var), c_unitAttributeStructure) == true) && (UnitGetType(auto95B16F81_var) != "CreepTumorBurrowed")) {
            libNtve_gf_ShowHideUnit(auto95B16F81_var, true);
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/MapScript.galaxy:4885

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/MapScript.galaxy:4942

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/MapScript.galaxy:876

        auto76A5C87F_var = UnitGroupUnitFromEnd(auto76A5C87F_g, auto76A5C87F_u);
        if (auto76A5C87F_var == null) { break; }
        if ((UnitTypeTestAttribute(UnitGetType(auto76A5C87F_var), c_unitAttributeHeroic) == true)) {
            lv_supplyValue += 6.0;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/MapScript.galaxy:1977

    }

    if ((gv_flashFreezeActive == true) && (UnitGetOwner(libNtve_gf_KillingUnit()) == gv_pLAYER_01_USER) && ((UnitGetOwner(EventUnit()) == gv_pLAYER_04_PROTOSS) || (UnitGetOwner(EventUnit()) == gv_pLAYER_05_PROTOSS) || (UnitGetOwner(EventUnit()) == gv_pLAYER_06_PROTOSS)) && (UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false)) {
        gv_protossKilledDuringFlashFreeze = (gv_protossKilledDuringFlashFreeze + 1);
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/MapScript.galaxy:1981

    }

    if ((gv_flashFreezeActive == false) && (UnitGetOwner(libNtve_gf_KillingUnit()) == gv_pLAYER_01_USER) && ((UnitGetOwner(EventUnit()) == gv_pLAYER_04_PROTOSS) || (UnitGetOwner(EventUnit()) == gv_pLAYER_05_PROTOSS) || (UnitGetOwner(EventUnit()) == gv_pLAYER_06_PROTOSS)) && (UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true)) {
        gv_unfrozenStructureDestroyed = (gv_unfrozenStructureDestroyed + 1);
        if ((gv_unfrozenStructureDestroyed >= 20)) {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/MapScript.galaxy:1047

    Wait(0.5, c_timeGame);
    libNtve_gf_RescueUnit(lp_cHOSEN_UNIT, gv_pLAYER_01_USER, true);
    if ((UnitTypeTestAttribute(UnitGetType(lp_cHOSEN_UNIT), c_unitAttributeStructure) == false)) {
        gv_feralZergUnfrozen += 1;
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition03.sc2map/MapScript.galaxy:7150

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:5510

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:5677

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:3527

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:3640

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/MapScript.galaxy:3933

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/MapScript.galaxy:3973

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal02.sc2map/MapScript.galaxy:4388

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal02.sc2map/MapScript.galaxy:5076

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal02.sc2map/MapScript.galaxy:7278

        auto5D552A7C_var = UnitGroupUnitFromEnd(auto5D552A7C_g, auto5D552A7C_u);
        if (auto5D552A7C_var == null) { break; }
        if ((UnitGetOwner(auto5D552A7C_var) == 1) && (UnitTypeTestAttribute(UnitGetType(auto5D552A7C_var), c_unitAttributeStructure) == true)) {
        }
        else {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:4503

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:5865

        }
        else {
            if ((UnitTypeTestAttribute(UnitGetType(auto95FAA114_var), c_unitAttributeStructure) == false)) {
                libNtve_gf_ShowHideUnit(auto95FAA114_var, false);
            }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:5226

        auto198FC13A_var = UnitGroupUnitFromEnd(auto198FC13A_g, auto198FC13A_u);
        if (auto198FC13A_var == null) { break; }
        if ((UnitTypeTestAttribute(UnitGetType(auto198FC13A_var), c_unitAttributeHeroic) == true)) {
            lv_totalSupplyCost += 6.0;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:5309

        autoFD5361B6_var = UnitGroupUnitFromEnd(autoFD5361B6_g, autoFD5361B6_u);
        if (autoFD5361B6_var == null) { break; }
        if ((UnitTypeTestAttribute(UnitGetType(autoFD5361B6_var), c_unitAttributeHeroic) == true)) {
            lv_totalSupplyCost += 6.0;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:5392

        auto909C327F_var = UnitGroupUnitFromEnd(auto909C327F_g, auto909C327F_u);
        if (auto909C327F_var == null) { break; }
        if ((UnitTypeTestAttribute(UnitGetType(auto909C327F_var), c_unitAttributeHeroic) == true)) {
            lv_totalSupplyCost += 6.0;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:7599

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:7653

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar02.sc2mapMapScript.galaxy:4951

        auto95B16F81_var = UnitGroupUnitFromEnd(auto95B16F81_g, auto95B16F81_u);
        if (auto95B16F81_var == null) { break; }
        if ((UnitTypeTestAttribute(UnitGetType(auto95B16F81_var), c_unitAttributeStructure) == true) && (UnitGetType(auto95B16F81_var) != "CreepTumorBurrowed")) {
            libNtve_gf_ShowHideUnit(auto95B16F81_var, true);
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar03.sc2mapMapScript.galaxy:4885

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar03.sc2mapMapScript.galaxy:4942

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition01.sc2mapMapScript.galaxy:876

        auto76A5C87F_var = UnitGroupUnitFromEnd(auto76A5C87F_g, auto76A5C87F_u);
        if (auto76A5C87F_var == null) { break; }
        if ((UnitTypeTestAttribute(UnitGetType(auto76A5C87F_var), c_unitAttributeHeroic) == true)) {
            lv_supplyValue += 6.0;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition01.sc2mapMapScript.galaxy:1977

    }

    if ((gv_flashFreezeActive == true) && (UnitGetOwner(libNtve_gf_KillingUnit()) == gv_pLAYER_01_USER) && ((UnitGetOwner(EventUnit()) == gv_pLAYER_04_PROTOSS) || (UnitGetOwner(EventUnit()) == gv_pLAYER_05_PROTOSS) || (UnitGetOwner(EventUnit()) == gv_pLAYER_06_PROTOSS)) && (UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false)) {
        gv_protossKilledDuringFlashFreeze = (gv_protossKilledDuringFlashFreeze + 1);
    }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition01.sc2mapMapScript.galaxy:1981

    }

    if ((gv_flashFreezeActive == false) && (UnitGetOwner(libNtve_gf_KillingUnit()) == gv_pLAYER_01_USER) && ((UnitGetOwner(EventUnit()) == gv_pLAYER_04_PROTOSS) || (UnitGetOwner(EventUnit()) == gv_pLAYER_05_PROTOSS) || (UnitGetOwner(EventUnit()) == gv_pLAYER_06_PROTOSS)) && (UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true)) {
        gv_unfrozenStructureDestroyed = (gv_unfrozenStructureDestroyed + 1);
        if ((gv_unfrozenStructureDestroyed >= 20)) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition02.sc2mapMapScript.galaxy:1047

    Wait(0.5, c_timeGame);
    libNtve_gf_RescueUnit(lp_cHOSEN_UNIT, gv_pLAYER_01_USER, true);
    if ((UnitTypeTestAttribute(UnitGetType(lp_cHOSEN_UNIT), c_unitAttributeStructure) == false)) {
        gv_feralZergUnfrozen += 1;
    }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition03.sc2mapMapScript.galaxy:7150

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid01.sc2mapMapScript.galaxy:5510

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid01.sc2mapMapScript.galaxy:5677

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid03.sc2mapMapScript.galaxy:3527

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid03.sc2mapMapScript.galaxy:3640

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal01.sc2mapMapScript.galaxy:3933

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal01.sc2mapMapScript.galaxy:3973

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2mapMapScript.galaxy:4388

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2mapMapScript.galaxy:5076

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2mapMapScript.galaxy:7278

        auto5D552A7C_var = UnitGroupUnitFromEnd(auto5D552A7C_g, auto5D552A7C_u);
        if (auto5D552A7C_var == null) { break; }
        if ((UnitGetOwner(auto5D552A7C_var) == 1) && (UnitTypeTestAttribute(UnitGetType(auto5D552A7C_var), c_unitAttributeStructure) == true)) {
        }
        else {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2mapMapScript.galaxy:4503

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2mapMapScript.galaxy:5865

        }
        else {
            if ((UnitTypeTestAttribute(UnitGetType(auto95FAA114_var), c_unitAttributeStructure) == false)) {
                libNtve_gf_ShowHideUnit(auto95FAA114_var, false);
            }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:5226

        auto198FC13A_var = UnitGroupUnitFromEnd(auto198FC13A_g, auto198FC13A_u);
        if (auto198FC13A_var == null) { break; }
        if ((UnitTypeTestAttribute(UnitGetType(auto198FC13A_var), c_unitAttributeHeroic) == true)) {
            lv_totalSupplyCost += 6.0;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:5309

        autoFD5361B6_var = UnitGroupUnitFromEnd(autoFD5361B6_g, autoFD5361B6_u);
        if (autoFD5361B6_var == null) { break; }
        if ((UnitTypeTestAttribute(UnitGetType(autoFD5361B6_var), c_unitAttributeHeroic) == true)) {
            lv_totalSupplyCost += 6.0;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:5392

        auto909C327F_var = UnitGroupUnitFromEnd(auto909C327F_g, auto909C327F_u);
        if (auto909C327F_var == null) { break; }
        if ((UnitTypeTestAttribute(UnitGetType(auto909C327F_var), c_unitAttributeHeroic) == true)) {
            lv_totalSupplyCost += 6.0;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:7599

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:7653

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:6384

        UnitBehaviorRemove(auto8973BF64_var, "ZergBuildingDies6", 1);
        UnitBehaviorRemove(auto8973BF64_var, "ZergBuildingDies9", 1);
        if ((UnitTypeTestAttribute(UnitGetType(auto8973BF64_var), c_unitAttributeStructure) == false)) {
            UnitBehaviorAdd(auto8973BF64_var, "InstallationZergWander", auto8973BF64_var, 1);
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:658

    if ((gv_cinematicCompleted == false)) {
        UnitCreateEffectUnit(lp_unit, "AmonTakeoverEffect", lp_unit);
        if ((UnitTypeTestAttribute(UnitGetType(lp_unit), c_unitAttributeStructure) == false)) {
            UnitIssueOrder(lp_unit, OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(gv_zeratul)), c_orderQueueReplace);
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:7263

        UnitSetPropertyFixed(auto9B572609_var, c_unitPropShieldsRegen, UnitTypeGetProperty(UnitGetType(auto9B572609_var), c_unitPropShieldsRegen));
        UnitSetPropertyFixed(auto9B572609_var, c_unitPropShieldsPercent, 100.0);
        if ((UnitTypeTestAttribute(UnitGetType(auto9B572609_var), c_unitAttributeStructure) == true)) {
            libNtve_gf_RescueUnit(auto9B572609_var, gv_pLAYER_01_USER, true);
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur03.sc2map/MapScript.galaxy:3490

    // Conditions
    if (testConds) {
        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur03.sc2map/MapScript.galaxy:3614

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur05.sc2map/MapScript.galaxy:4684

        autoA1A1640C_var = UnitGroupUnitFromEnd(autoA1A1640C_g, autoA1A1640C_u);
        if (autoA1A1640C_var == null) { break; }
        if ((UnitTypeTestAttribute(UnitGetType(autoA1A1640C_var), c_unitAttributeStructure) == true)) {
            libNtve_gf_ShowHideUnit(autoA1A1640C_var, true);
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pkorhal01.sc2map/MapScript.galaxy:5793

        auto98C0DD7A_var = UnitGroupUnitFromEnd(auto98C0DD7A_g, auto98C0DD7A_u);
        if (auto98C0DD7A_var == null) { break; }
        if ((UnitTypeTestAttribute(UnitGetType(auto98C0DD7A_var), c_unitAttributeStructure) == true)) {
            if ((libNtve_gf_UnitInRegion(auto98C0DD7A_var, gv_stabilizers[gv_finalStabilizerIndex].lv_secureZone) == true)) {
                libNtve_gf_ShowHideUnit(auto98C0DD7A_var, false);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pkorhal02.sc2map/MapScript.galaxy:2015

                        auto05AF8105_var = UnitGroupUnitFromEnd(auto05AF8105_g, auto05AF8105_u);
                        if (auto05AF8105_var == null) { break; }
                        if ((UnitTypeTestAttribute(UnitGetType(auto05AF8105_var), c_unitAttributeStructure) == false) && (libNtve_gf_UnitIsInsideTransport(auto05AF8105_var) == false)) {
                            libNtve_gf_AICast(auto05AF8105_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_nearbyPlayerUnits, UnitGetPosition(auto05AF8105_var)))));
                        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pkorhal02.sc2map/MapScript.galaxy:2028

                        auto9B8D08C5_var = UnitGroupUnitFromEnd(auto9B8D08C5_g, auto9B8D08C5_u);
                        if (auto9B8D08C5_var == null) { break; }
                        if ((UnitIsAlive(auto9B8D08C5_var) == true) && (UnitTypeTestAttribute(UnitGetType(auto9B8D08C5_var), c_unitAttributeStructure) == false) && (libNtve_gf_UnitIsInsideTransport(auto9B8D08C5_var) == false)) {
                            if ((libNtve_gf_UnitInRegion(auto9B8D08C5_var, RegionCircle(gf_EnemyCampUnitsHomePosition(auto9B8D08C5_var), 1.0)) == true)) {
                                if ((UnitGroupCount(gv_enemyCamps[lv_enemyCampIndex].lv_targetDummies, c_unitCountAlive) > 0)) {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pkorhal02.sc2map/MapScript.galaxy:4914


    gv_achievementDisruptedEnemyKills += 1;
    if ((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true)) {
        gv_masteryDisruptedStructureKills += 1;
    }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pkorhal02.sc2map/MapScript.galaxy:4944

    // Conditions
    if (testConds) {
        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == true))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:491

        if (auto9714DE6C_var == null) { break; }
        UnitGroupAdd(lv_platformUnits, auto9714DE6C_var);
        if ((UnitTypeTestAttribute(UnitGetType(auto9714DE6C_var), c_unitAttributeStructure) == false)) {
            if ((UnitGetOwner(auto9714DE6C_var) == gv_pLAYER_01_USER)) {
                UnitGroupAdd(lv_friendlyGroundUnits, auto9714DE6C_var);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:509

        autoA6006777_var = UnitGroupUnitFromEnd(autoA6006777_g, autoA6006777_u);
        if (autoA6006777_var == null) { break; }
        if ((UnitTypeTestAttribute(UnitGetType(autoA6006777_var), c_unitAttributeStructure) == false)) {
            if ((UnitGetType(autoA6006777_var) == "Probe")) {
                UnitAbilityEnable(autoA6006777_var, "ProtossBuild", false);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ppurifier01.sc2map/MapScript.galaxy:4141

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }