# Is Wave In Combat

Grammar — Specified wave waveRef is in combat
FlagsNative | Function

Returns true if the specified wave is in combat.

# Arguments

  • wave — Wave

Returns — bool

native bool AIWaveIsInCombat(wave w);

Category: AI Advanced / Waves / Functions

# Examples

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

    }

    if (AIWaveIsInCombat(w)) {
        return;
    }

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

    }

    if (AIWaveIsInCombat(w)) {
        return;
    }