# AIAnyAllyNeedsDefending

FlagsNative

# Arguments

  • int — player
  • wave — w

Returns — bool

native bool AIAnyAllyNeedsDefending(int player, wave w);

Category: Unclassified

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeHighAI.galaxy:148

            goAttack = true;
        }
        else if (AIAnyAllyNeedsDefending(player, AIWaveGet(player, c_waveMain))) {
            goAttack = true;
        }

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeWaveAI.galaxy:133

        AIDefendSelfWithWave(player, w);
    }
    else if (AIAnyAllyNeedsDefending(player, w)) {
        AIDefendAllyWithWave(player, w);
    }

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeWaveAI.galaxy:168

        return;
    }
    else if (AIAnyAllyNeedsDefending(player, w)) {
        AIDefendAllyWithWave(player, w);
        return;

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeWaveAI.galaxy:213

            return;
        }
        else if (AIAnyAllyNeedsDefending(player, w)) {
            AIDefendAllyWithWave(player, w);
            return;

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeWaveAI.galaxy:306

            return;
        }
        else if (AIAnyAllyNeedsDefending(player, w)) {
            AIDefendAllyWithWave(player, w);
            return;

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeWaveAI.galaxy:376

    }
   
    if (AIAnyAllyNeedsDefending(player, w)) {
        return true;
    }

mods/void.sc2modbase.sc2data/TriggerLibs/MeleeHighAI.galaxy:148

            goAttack = true;
        }
        else if (AIAnyAllyNeedsDefending(player, AIWaveGet(player, c_waveMain))) {
            goAttack = true;
        }

mods/warcoop/warmeleeai.sc2modbase.sc2data/TriggerLibs/MeleeWaveAI.galaxy:455

    fixed defenseEval = 0;

    if (AIAnyAllyNeedsDefending(player, w)) {
        return true;
    }