# Game Allows Duplicate Heroes

Grammar — Game allows duplicate heroes
FlagsNative | Function

Returns true if the game allows duplicate heroes

Returns — bool

native bool GameAreHeroDuplicatesAllowed();

Category: Game / Game Settings

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:7575


        lv_heroIndex = libCore_gf_GetIndexFromHero(lv_heroLink);
        if ((GameAreHeroDuplicatesAllowed() == false) && (libGame_gf_HeroSelectionIsHeroSelectedForAnyPlayer(lv_heroIndex) == true)) {
            continue;
        }