The search keyword must be a single word (no spaces).

Function CreateBuildCommandButtonEffectBJ

Line
2823
Location
blizzard.j
Constant?
no
Type
function
Arguments
integer unitId
Returns
commandbuttoneffect
2823
function CreateBuildCommandButtonEffectBJ takes integer unitId returns commandbuttoneffect
2824
    local race r = GetPlayerRace(GetLocalPlayer())
2825
    local integer abilityId
2826
    if (r == RACE_HUMAN) then
2827
        set abilityId = 'AHbu'
2828
    elseif (r == RACE_ORC) then
2829
        set abilityId = 'AObu'
2830
    elseif (r == RACE_UNDEAD) then
2831
        set abilityId = 'AUbu'
2832
    elseif (r == RACE_NIGHTELF) then
2833
        set abilityId = 'AEbu'
2834
    else
2835
        set abilityId = 'ANbu'
2836
    endif
2837
    set bj_lastCreatedCommandButtonEffect = CreateCommandButtonEffect(abilityId, UnitId2String(unitId))
2838
    return bj_lastCreatedCommandButtonEffect
2839
endfunction