Jass:SetHeroLevelBJ – Mappedia

Jass:SetHeroLevelBJ

Aus Mappedia
Wechseln zu: Navigation, Suche
Funktion: SetHeroLevelBJ
Parameter: unit
integer
boolean
Rückgabewert: nothing
Autor: Blizzard
Quelle: Blizzard.j
Synchron: Unbekannt



Code

function SetHeroLevelBJ takes unit whichHero, integer newLevel, boolean showEyeCandy returns nothing
    local integer oldLevel = GetHeroLevel(whichHero)

    if (newLevel > oldLevel) then
        call SetHeroLevel(whichHero, newLevel, showEyeCandy)
    elseif (newLevel < oldLevel) then
        call UnitStripHeroLevel(whichHero, oldLevel - newLevel)
    else
        // No change in level - ignore the request.
    endif
endfunction

Parameter

Typ Name Beschreibung
unit whichHero
integer newLevel
boolean showEyeCandy
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Warcraft-Mapping
Werkzeuge