• Sets the hero to chosen level.

    The level can only be increased; lowering the level does nothing. Further, the level will not exceed the hero's maximum level set in WorldEditor.

    Parameters

    • whichHero: Unit<UnitEventMap>

      The target hero unit.

    • level: number

      New level of the hero.

    • showEyeCandy: boolean

      False to hide level-up effects, true to show. The level-up effects include: floating experience gain text, sound and a visual effect.

    Returns void

Generated using TypeDoc