# Combat Diff Flag Healers

Grammar — Perform action action on the combat diffculty flag for player player - Healers
FlagsNative | Function

When enabled, allows the combat AI to target healers before certain other targets.

# Arguments

Returns — bool

native bool AICombatDiffFlagTieBreakHealers(
	int player,
	int action,
);

Category: AI Advanced / Tactical / Functions

# Examples

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

    while (!PlayerGroupLoopDone()) {
        AISetDifficulty(PlayerGroupLoopCurrent(), c_diffNormalTargetPrio, true);
        lv_bool = AICombatDiffFlagTieBreakHealers(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagTieBreakInjured(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagCatWorkersNormalPrio(PlayerGroupLoopCurrent(), c_combatFlagEnable);

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

    while (!PlayerGroupLoopDone()) {
        AISetDifficulty(PlayerGroupLoopCurrent(), c_diffNormalTargetPrio, true);
        lv_bool = AICombatDiffFlagTieBreakHealers(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagTieBreakInjured(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagCatWorkersNormalPrio(PlayerGroupLoopCurrent(), c_combatFlagEnable);

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

    // Implementation
    AISetDifficulty(lp_player, c_diffAvoidMindControlled, false);
    AICombatDiffFlagTieBreakHealers (lp_player, c_combatFlagDisable);
}

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:63

        AICombatDiffFlagCatWorkersNormalPrio   (player, AIDiffThreshold(player, c_combatFlagDisable, c_skirEasy  ,   c_combatFlagEnable));
        AICombatDiffFlagCatSortBuildingsPrio   (player, AIDiffThreshold(player, c_combatFlagDisable, c_skirEasy  ,   c_combatFlagEnable));
        AICombatDiffFlagTieBreakHealers        (player, AIDiffThreshold(player, c_combatFlagDisable, c_skirEasy  ,   c_combatFlagEnable));
        AICombatDiffFlagTieBreakBonusDamage    (player, AIDiffThreshold(player, c_combatFlagDisable, c_skirMedium,   c_combatFlagEnable));
        AICombatDiffFlagTieBreakLowHP          (player, AIDiffThreshold(player, c_combatFlagDisable, c_skirMedium,   c_combatFlagEnable));

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:76

        AICombatDiffFlagCatWorkersNormalPrio   (player, AIDiffThreshold(player, c_combatFlagDisable, c_campAdvanced, c_combatFlagEnable));
        AICombatDiffFlagCatSortBuildingsPrio   (player, AIDiffThreshold(player, c_combatFlagDisable, c_campAdvanced, c_combatFlagEnable));
        AICombatDiffFlagTieBreakHealers        (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));
        AICombatDiffFlagTieBreakLowHP          (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));
        AICombatDiffFlagTieBreakBonusDamage    (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:2789

    // Implementation
    AISetDifficulty(lp_player, c_diffAvoidMindControlled, false);
    AICombatDiffFlagTieBreakHealers (lp_player, c_combatFlagDisable);
}

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:113

	AICombatDiffFlagCatWorkersNormalPrio   (player, AIDiffThreshold(player, c_combatFlagDisable, c_campAdvanced, c_combatFlagEnable));
	AICombatDiffFlagCatSortBuildingsPrio   (player, AIDiffThreshold(player, c_combatFlagDisable, c_campAdvanced, c_combatFlagEnable));
	AICombatDiffFlagTieBreakHealers        (player, AIDiffThreshold(player, c_combatFlagDisable, c_campVirtuoso,   c_combatFlagEnable));
	AICombatDiffFlagTieBreakLowHP          (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));
	AICombatDiffFlagTieBreakBonusDamage    (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));