# Game Is Practice

Grammar — Game started from Practice queue
FlagsNative | Function

Returns true if the game was started from the Practice queue on Battle.net.

Returns — bool

native bool GameIsPractice();

Category: Game / Game Settings

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:2399


    if ((PlayerType(lp_player) == c_playerTypeUser) && (CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroID, "Flags[AllowHumanRandomSelection]", c_playerAny) == 1)) {
        if (((libCore_gv_dEBUGGameIsOnline == false) || (libCore_gv_sYSGameMode == libCore_ge_GameModes_TryMe) || (libCore_gf_MetagameIsHeroInRotationForPlayer(lp_player, lp_heroIndex) == true) || ((GameIsPractice() == true) && (lv_heroID == CatalogFieldValueGet(c_gameCatalogConfig, "Config", "FreeToPlayPracticeHero", c_playerAny))) || ((libCore_gf_MetagameIsHeroInFreebieSet(lp_heroIndex) == true) && ((GameIsPractice() == true) || (GameIsCooperative() == true))))) {
            return true;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:2399


    if ((PlayerType(lp_player) == c_playerTypeUser) && (CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroID, "Flags[AllowHumanRandomSelection]", c_playerAny) == 1)) {
        if (((libCore_gv_dEBUGGameIsOnline == false) || (libCore_gv_sYSGameMode == libCore_ge_GameModes_TryMe) || (libCore_gf_MetagameIsHeroInRotationForPlayer(lp_player, lp_heroIndex) == true) || ((GameIsPractice() == true) && (lv_heroID == CatalogFieldValueGet(c_gameCatalogConfig, "Config", "FreeToPlayPracticeHero", c_playerAny))) || ((libCore_gf_MetagameIsHeroInFreebieSet(lp_heroIndex) == true) && ((GameIsPractice() == true) || (GameIsCooperative() == true))))) {
            return true;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:1336

    }

    return GameIsPractice();
}