# Combat Diff Flag Injured

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

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

# Arguments

Returns — bool

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

Category: AI Advanced / Tactical / Functions

# Examples

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

        AISetDifficulty(PlayerGroupLoopCurrent(), c_diffNormalTargetPrio, true);
        lv_bool = AICombatDiffFlagTieBreakHealers(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagTieBreakInjured(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagCatWorkersNormalPrio(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagTieBreakLowHP(PlayerGroupLoopCurrent(), c_combatFlagEnable);

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

        AISetDifficulty(PlayerGroupLoopCurrent(), c_diffNormalTargetPrio, true);
        lv_bool = AICombatDiffFlagTieBreakHealers(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagTieBreakInjured(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagCatWorkersNormalPrio(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagTieBreakLowHP(PlayerGroupLoopCurrent(), c_combatFlagEnable);

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

        AICombatDiffFlagTieBreakBonusDamage    (player, AIDiffThreshold(player, c_combatFlagDisable, c_skirMedium,   c_combatFlagEnable));
        AICombatDiffFlagTieBreakLowHP          (player, AIDiffThreshold(player, c_combatFlagDisable, c_skirMedium,   c_combatFlagEnable));
        AICombatDiffFlagTieBreakInjured        (player, AIDiffThreshold(player, c_combatFlagDisable, c_skirMedium,   c_combatFlagEnable));
        AICombatDiffFlagTieBreakDetector       (player, AIDiffThreshold(player, c_combatFlagDisable, c_skirMedium,   c_combatFlagEnable));
        AICombatDiffFlagTieBreakRange          (player, AIDiffThreshold(player, c_combatFlagDisable, c_skirMedium,   c_combatFlagEnable));

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

        AICombatDiffFlagTieBreakLowHP          (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));
        AICombatDiffFlagTieBreakBonusDamage    (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));
        AICombatDiffFlagTieBreakInjured        (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));
        AICombatDiffFlagTieBreakDetector       (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));
        AICombatDiffFlagTieBreakRange          (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));

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

	AICombatDiffFlagTieBreakLowHP          (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));
	AICombatDiffFlagTieBreakBonusDamage    (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));
	AICombatDiffFlagTieBreakInjured        (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));
	AICombatDiffFlagTieBreakDetector       (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));
	AICombatDiffFlagTieBreakRange          (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));