# Get Relationship Between Players

Grammar — Player sourcePlayer treats player targetPlayer as relation|Ally/Enemy/Neutral
FlagsFunction

Returns true of the source player is treating the target player as ally, enemy, or neutral. Use the Mutual options to check if two players treat each other as mutual allies, enemies, or neutrals.

# Arguments

  • int — Source Player
  • int — Target Player
  • int<preset::PlayerRelation> — Relation

Returns — bool

bool libNtve_gf_PlayerIsEnemy(
	int lp_sourcePlayer,
	int lp_targetPlayer,
	int lp_relation,
);

Category: Player / Alliances

# Examples

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:5185

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), UnitGetOwner(libNtve_gf_KillingUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_p01_USER, libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), UnitGetOwner(libNtve_gf_KillingUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(libNtve_gf_KillingUnit()), gv_p2_RAYNOR_LIGHTBLUE, libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:3271

        }

        if (!((libNtve_gf_PlayerIsEnemy(gv_pLAYER_01_USER, UnitGetOwner(EventUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:5149

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), UnitGetOwner(libNtve_gf_KillingUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2mapMapScript.galaxy:5185

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), UnitGetOwner(libNtve_gf_KillingUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_p01_USER, libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), UnitGetOwner(libNtve_gf_KillingUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(libNtve_gf_KillingUnit()), gv_p2_RAYNOR_LIGHTBLUE, libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2mapMapScript.galaxy:3271

        }

        if (!((libNtve_gf_PlayerIsEnemy(gv_pLAYER_01_USER, UnitGetOwner(EventUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2mapMapScript.galaxy:5149

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), UnitGetOwner(libNtve_gf_KillingUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar01.sc2map/MapScript.galaxy:5100

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), UnitGetOwner(libNtve_gf_KillingUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:4733

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), UnitGetOwner(libNtve_gf_KillingUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        if (autoEACA5FB9_var == null) { break; }
        if ((UnitGetType(autoEACA5FB9_var) != "ZergDropPod") && (autoEACA5FB9_var != UnitLastCreated())) {
            if (((UnitGetOwner(autoEACA5FB9_var) == gv_pLAYER_01_USER) || (libNtve_gf_PlayerIsEnemy(gv_pLAYER_01_USER, UnitGetOwner(autoEACA5FB9_var), libNtve_ge_PlayerRelation_Ally) == true))) {
                UnitSetPosition(autoEACA5FB9_var, UnitTypePlacementFromPoint("KorhalSporeCannon", UnitGetOwner(autoEACA5FB9_var), lp_dROP_LOCATION, 4.0), true);
            }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:1058

    UnitGroupAdd(lv_group, UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), lv_assembleCenter), c_orderQueueReplace);
    if ((lp_unitTypeMiddle == "SJBattlecruiser") && (libNtve_gf_PlayerIsEnemy(lp_player, gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true)) {
        gf_TriggerAddEventUnitDamaged(gt_BattlecruiserTakesDamage, UnitLastCreated());
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:1070

        UnitGroupAdd(lv_group, UnitLastCreated());
        UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), lv_assembleLoc), c_orderQueueReplace);
        if ((lp_unitTypeMiddle == "SJBattlecruiser") && (libNtve_gf_PlayerIsEnemy(lp_player, gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true)) {
            gf_TriggerAddEventUnitDamaged(gt_BattlecruiserTakesDamage, UnitLastCreated());
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:1083

        UnitGroupAdd(lv_group, UnitLastCreated());
        UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), lv_assembleLoc), c_orderQueueReplace);
        if ((lp_unitTypeMiddle == "SJBattlecruiser") && (libNtve_gf_PlayerIsEnemy(lp_player, gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true)) {
            gf_TriggerAddEventUnitDamaged(gt_BattlecruiserTakesDamage, UnitLastCreated());
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:4831

            lv_indexUnit = UnitGroupUnitFromEnd(autoA9C2864E_g, autoA9C2864E_u);
            if (lv_indexUnit == null) { break; }
            if ((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), UnitGetOwner(lv_indexUnit), libNtve_ge_PlayerRelation_Enemy) == false)) {
                UnitGroupRemove(lv_enemys, lv_indexUnit);
            }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zspace02.sc2map/MapScript.galaxy:7010

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), UnitGetOwner(libNtve_gf_KillingUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:5079

        }

        if (!((libNtve_gf_PlayerIsEnemy(gv_pLAYER_01_USER, UnitGetOwner(EventUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar01.sc2mapMapScript.galaxy:5100

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), UnitGetOwner(libNtve_gf_KillingUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2mapMapScript.galaxy:4733

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), UnitGetOwner(libNtve_gf_KillingUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        if (autoEACA5FB9_var == null) { break; }
        if ((UnitGetType(autoEACA5FB9_var) != "ZergDropPod") && (autoEACA5FB9_var != UnitLastCreated())) {
            if (((UnitGetOwner(autoEACA5FB9_var) == gv_pLAYER_01_USER) || (libNtve_gf_PlayerIsEnemy(gv_pLAYER_01_USER, UnitGetOwner(autoEACA5FB9_var), libNtve_ge_PlayerRelation_Ally) == true))) {
                UnitSetPosition(autoEACA5FB9_var, UnitTypePlacementFromPoint("KorhalSporeCannon", UnitGetOwner(autoEACA5FB9_var), lp_dROP_LOCATION, 4.0), true);
            }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2mapMapScript.galaxy:1058

    UnitGroupAdd(lv_group, UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), lv_assembleCenter), c_orderQueueReplace);
    if ((lp_unitTypeMiddle == "SJBattlecruiser") && (libNtve_gf_PlayerIsEnemy(lp_player, gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true)) {
        gf_TriggerAddEventUnitDamaged(gt_BattlecruiserTakesDamage, UnitLastCreated());
    }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2mapMapScript.galaxy:1070

        UnitGroupAdd(lv_group, UnitLastCreated());
        UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), lv_assembleLoc), c_orderQueueReplace);
        if ((lp_unitTypeMiddle == "SJBattlecruiser") && (libNtve_gf_PlayerIsEnemy(lp_player, gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true)) {
            gf_TriggerAddEventUnitDamaged(gt_BattlecruiserTakesDamage, UnitLastCreated());
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2mapMapScript.galaxy:1083

        UnitGroupAdd(lv_group, UnitLastCreated());
        UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), lv_assembleLoc), c_orderQueueReplace);
        if ((lp_unitTypeMiddle == "SJBattlecruiser") && (libNtve_gf_PlayerIsEnemy(lp_player, gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true)) {
            gf_TriggerAddEventUnitDamaged(gt_BattlecruiserTakesDamage, UnitLastCreated());
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2mapMapScript.galaxy:4831

            lv_indexUnit = UnitGroupUnitFromEnd(autoA9C2864E_g, autoA9C2864E_u);
            if (lv_indexUnit == null) { break; }
            if ((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), UnitGetOwner(lv_indexUnit), libNtve_ge_PlayerRelation_Enemy) == false)) {
                UnitGroupRemove(lv_enemys, lv_indexUnit);
            }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace02.sc2mapMapScript.galaxy:7010

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), UnitGetOwner(libNtve_gf_KillingUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2mapMapScript.galaxy:5079

        }

        if (!((libNtve_gf_PlayerIsEnemy(gv_pLAYER_01_USER, UnitGetOwner(EventUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:1295

        if (autoEFB1326A_var == null) { break; }
        if ((UnitGetType(autoEFB1326A_var) != "ZergDropPodLarge") && (autoEFB1326A_var != UnitLastCreated())) {
            if (((UnitGetOwner(autoEFB1326A_var) == lp_player) || (libNtve_gf_PlayerIsEnemy(lp_player, UnitGetOwner(autoEFB1326A_var), libNtve_ge_PlayerRelation_Ally) == true))) {
                UnitSetPosition(autoEFB1326A_var, UnitTypePlacementFromPoint(lp_buildingType, UnitGetOwner(autoEFB1326A_var), lp_landingPoint, 4.0), true);
            }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:478

        }
        else {
            if (((libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true) || (libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_EnemyMutual) == true))) {
                ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(100.00, 0.00, 0.00), 1.0, 0.0));
            }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:478

        }
        else {
            if (((libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true) || (libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_EnemyMutual) == true))) {
                ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(100.00, 0.00, 0.00), 1.0, 0.0));
            }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:482

            }
            else {
                if (((libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Neutral) == true) || (libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                    ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(100.00, 100.00, 0.00), 1.0, 0.0));
                }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:482

            }
            else {
                if (((libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Neutral) == true) || (libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                    ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(100.00, 100.00, 0.00), 1.0, 0.0));
                }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:486

                }
                else {
                    if (((libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true) || (libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                        ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(0.00, 100.00, 0.00), 1.0, 0.0));
                    }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:486

                }
                else {
                    if (((libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true) || (libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                        ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(0.00, 100.00, 0.00), 1.0, 0.0));
                    }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:874

    }
    else {
        if (((libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true) || (libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_EnemyMutual) == true))) {
            ActorSend(libNtve_gf_MainActorofUnit(EventUnit()), libNtve_gf_SetTintColor(Color(100.00, 0.00, 0.00), 1.0, 0.0));
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:874

    }
    else {
        if (((libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true) || (libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_EnemyMutual) == true))) {
            ActorSend(libNtve_gf_MainActorofUnit(EventUnit()), libNtve_gf_SetTintColor(Color(100.00, 0.00, 0.00), 1.0, 0.0));
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:878

        }
        else {
            if (((libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Neutral) == true) || (libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                ActorSend(libNtve_gf_MainActorofUnit(EventUnit()), libNtve_gf_SetTintColor(Color(100.00, 100.00, 0.00), 1.0, 0.0));
            }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:878

        }
        else {
            if (((libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Neutral) == true) || (libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                ActorSend(libNtve_gf_MainActorofUnit(EventUnit()), libNtve_gf_SetTintColor(Color(100.00, 100.00, 0.00), 1.0, 0.0));
            }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(gv_pLAYER_01_USER, UnitGetOwner(EventUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar03.sc2map/MapScript.galaxy:5281

        }

        if (!((libNtve_gf_PlayerIsEnemy(gv_pLAYER_01_USER, UnitGetOwner(EventUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2350

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2379

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2408

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2437

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2466

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2495

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2524

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2553

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2582

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2611

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:478

        }
        else {
            if (((libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true) || (libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_EnemyMutual) == true))) {
                ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(100.00, 0.00, 0.00), 1.0, 0.0));
            }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:478

        }
        else {
            if (((libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true) || (libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_EnemyMutual) == true))) {
                ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(100.00, 0.00, 0.00), 1.0, 0.0));
            }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:482

            }
            else {
                if (((libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Neutral) == true) || (libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                    ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(100.00, 100.00, 0.00), 1.0, 0.0));
                }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:482

            }
            else {
                if (((libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Neutral) == true) || (libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                    ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(100.00, 100.00, 0.00), 1.0, 0.0));
                }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:486

                }
                else {
                    if (((libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true) || (libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                        ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(0.00, 100.00, 0.00), 1.0, 0.0));
                    }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:486

                }
                else {
                    if (((libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true) || (libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                        ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(0.00, 100.00, 0.00), 1.0, 0.0));
                    }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:874

    }
    else {
        if (((libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true) || (libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_EnemyMutual) == true))) {
            ActorSend(libNtve_gf_MainActorofUnit(EventUnit()), libNtve_gf_SetTintColor(Color(100.00, 0.00, 0.00), 1.0, 0.0));
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:874

    }
    else {
        if (((libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true) || (libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_EnemyMutual) == true))) {
            ActorSend(libNtve_gf_MainActorofUnit(EventUnit()), libNtve_gf_SetTintColor(Color(100.00, 0.00, 0.00), 1.0, 0.0));
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:878

        }
        else {
            if (((libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Neutral) == true) || (libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                ActorSend(libNtve_gf_MainActorofUnit(EventUnit()), libNtve_gf_SetTintColor(Color(100.00, 100.00, 0.00), 1.0, 0.0));
            }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:878

        }
        else {
            if (((libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Neutral) == true) || (libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                ActorSend(libNtve_gf_MainActorofUnit(EventUnit()), libNtve_gf_SetTintColor(Color(100.00, 100.00, 0.00), 1.0, 0.0));
            }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ppurifier01.sc2mapMapScript.galaxy:4294

        }

        if (!((libNtve_gf_PlayerIsEnemy(gv_pLAYER_01_USER, UnitGetOwner(EventUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar03.sc2mapMapScript.galaxy:5281

        }

        if (!((libNtve_gf_PlayerIsEnemy(gv_pLAYER_01_USER, UnitGetOwner(EventUnit()), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2350

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2379

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2408

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2437

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2466

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2495

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2524

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2553

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2582

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2611

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true))) {
            return false;
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:10264

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_PlayerIsEnemy(EventUnitDamageSourcePlayer(), EventPlayer(), libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:962

    lv_i = 2;
    for ( ; ( (auto4CF9774B_ai >= 0 && lv_i <= auto4CF9774B_ae) || (auto4CF9774B_ai < 0 && lv_i >= auto4CF9774B_ae) ) ; lv_i += auto4CF9774B_ai ) {
        if (((libNtve_gf_PlayerIsEnemy(1, lv_i, libNtve_ge_PlayerRelation_Enemy) == true) || (libNtve_gf_PlayerIsEnemy(1, lv_i, libNtve_ge_PlayerRelation_EnemyMutual) == true))) {
            libNtve_gf_SetUpgradeLevelForPlayer(lv_i, "DetectionEnemy", 1);
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:962

    lv_i = 2;
    for ( ; ( (auto4CF9774B_ai >= 0 && lv_i <= auto4CF9774B_ae) || (auto4CF9774B_ai < 0 && lv_i >= auto4CF9774B_ae) ) ; lv_i += auto4CF9774B_ai ) {
        if (((libNtve_gf_PlayerIsEnemy(1, lv_i, libNtve_ge_PlayerRelation_Enemy) == true) || (libNtve_gf_PlayerIsEnemy(1, lv_i, libNtve_ge_PlayerRelation_EnemyMutual) == true))) {
            libNtve_gf_SetUpgradeLevelForPlayer(lv_i, "DetectionEnemy", 1);
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:3331

        if (auto5CF01D86_var == null) { break; }
        if ((UnitGetType(auto5CF01D86_var) != "ZergDropPodLarge") && (auto5CF01D86_var != UnitLastCreated())) {
            if (((UnitGetOwner(auto5CF01D86_var) == lp_player) || (libNtve_gf_PlayerIsEnemy(lp_player, UnitGetOwner(auto5CF01D86_var), libNtve_ge_PlayerRelation_Ally) == true))) {
                UnitSetPosition(auto5CF01D86_var, UnitTypePlacementFromPoint(lp_buildingType, UnitGetOwner(auto5CF01D86_var), lp_landingPoint, 4.0), true);
            }

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3889

        lv_itPlayer = PlayerGroupNextPlayer(autoB554E2D1_g, lv_itPlayer);
        if (lv_itPlayer < 0) { break; }
        if ((libNtve_gf_PlayerIsEnemy(lp_player, lv_itPlayer, lp_alliance) == true)) {
            PlayerGroupAdd(lv_playerGroup, lv_itPlayer);
        }

mods/heroesbrawlmods/arenamodemods/templearena.stormmodbase.stormdata/LibAMCT.galaxy:324

            }

            if (((UnitIsAlive(libAMCT_gv_aRMSkyTemple[lp_templeIndex].lv_targetUnit) == false) || (libNtve_gf_UnitIsInvulnerable(libAMCT_gv_aRMSkyTemple[lp_templeIndex].lv_targetUnit) == true) || (libNtve_gf_PlayerIsEnemy(UnitGetOwner(libAMCT_gv_aRMSkyTemple[lp_templeIndex].lv_temple), UnitGetOwner(libAMCT_gv_aRMSkyTemple[lp_templeIndex].lv_targetUnit), libNtve_ge_PlayerRelation_Enemy) == false))) {
                libAMCT_gf_ARMSkyTempleClearTempleTargetRevealers(lp_templeIndex, 6.0);
                lv_target = libAMCT_gf_ARMSkyTempleNextTempleTarget(lp_templeIndex);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/AILib.galaxy:471

        if (lv_u == null) { break; }
        lv_unitOwner = UnitGetOwner(lv_u);
        if ((((libAIAI_gv_defenderAI[lp_defenderAIIndex].lv_aggroOnComputerPlayers == false) && (lv_unitOwner > libCore_gv_bALMaxPlayers) && (UnitHasBehavior2(lv_u, "VehicleGenericIsMainVehicle") == false)) || ((libNtve_gf_PlayerIsEnemy(lv_defenderOwner, lv_unitOwner, libNtve_ge_PlayerRelation_Enemy) == false) && (UnitHasBehavior2(lv_u, "VehicleGenericIsMainVehicle") == false)) || (UnitTypeTestFlag(UnitGetType(lv_u), c_unitFlagUntargetable) == true) || (UnitHasBehaviorWithCategoryFlag(lv_u, c_behaviorCategoryUnrevealableCloak) == true))) {
            continue;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:9011

        lv_itUnit = UnitGroupUnitFromEnd(autoED19B100_g, autoED19B100_u);
        if (lv_itUnit == null) { break; }
        if ((UnitBehaviorCount(lv_itUnit, "SpecialCaseNPCTakedownParticipant") == 1) && (libNtve_gf_PlayerIsEnemy(UnitGetOwner(lv_itUnit), UnitGetOwner(lp_killedUnit), libNtve_ge_PlayerRelation_Enemy) == true)) {
            libGame_gf_SendEventSpecialCaseUnitParticipatedInNPCTakedown(UnitGetOwner(lv_itUnit), lp_killedUnit);
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18997

            lv_itUnit = UnitGroupUnitFromEnd(autoE376AD85_g, autoE376AD85_u);
            if (lv_itUnit == null) { break; }
            if ((libNtve_gf_PlayerIsEnemy(UnitGetOwner(lv_itUnit), UnitGetOwner(lv_dyingStructureUnit), libNtve_ge_PlayerRelation_Enemy) == true)) {
                PlayerGroupAdd(lv_killingPlayersGroup, UnitGetOwner(lv_itUnit));
            }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:2300

        	lv_itPlayer = PlayerGroupNextPlayer(autoA1C853BF_g, lv_itPlayer);
        	if (lv_itPlayer<0) { break; }
        	if ((lv_itPlayer != lp_player) && (libNtve_gf_PlayerIsEnemy(lp_player, lv_itPlayer, libNtve_ge_PlayerRelation_Ally) == true)) {
            PlayerSetAlliance(lp_player, c_allianceIdVision, lv_itPlayer, false);
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:2336

        	lv_itPlayer = PlayerGroupNextPlayer(auto341C65FA_g, lv_itPlayer);
        	if (lv_itPlayer<0) { break; }
        	if ((lv_itPlayer != lp_player) && (libNtve_gf_PlayerIsEnemy(lp_player, lv_itPlayer, libNtve_ge_PlayerRelation_Ally) == true)) {
            PlayerSetAlliance(lp_player, c_allianceIdVision, lv_itPlayer, true);
        }