• Adds the ability to target unit. Can be used to add an ability to any hero. The added ability is level 1 and without a cooldown.

    Returns:

    • true if the addition was successful (hero did not have this ability before)
    • false otherwise (hero already has this ability)

    Parameters

    • whichUnit: Unit<UnitEventMap>

      Target unit.

    • abilityId: number

      Abilities' raw code identifier.

    Returns boolean

Generated using TypeDoc