Jass:GetHeroStatBJ
Aus Mappedia
| Funktion: GetHeroStatBJ | |
|---|---|
| Parameter: | integer unit boolean |
| Rückgabewert: | integer |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function GetHeroStatBJ takes integer whichStat, unit whichHero, boolean includeBonuses returns integer if (whichStat == bj_HEROSTAT_STR) then return GetHeroStr(whichHero, includeBonuses) elseif (whichStat == bj_HEROSTAT_AGI) then return GetHeroAgi(whichHero, includeBonuses) elseif (whichStat == bj_HEROSTAT_INT) then return GetHeroInt(whichHero, includeBonuses) else // Unrecognized hero stat - return 0 return 0 endif endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| integer | whichStat | |
| unit | whichHero | |
| boolean | includeBonuses |
