File src/altar.j changed (mode: 100644) (index 7724912..fdcc6fd) |
... |
... |
function altar_train_trig_action takes nothing returns nothing |
47 |
47 |
call SetPlayerState(p, PLAYER_STATE_RESOURCE_GOLD, g) |
call SetPlayerState(p, PLAYER_STATE_RESOURCE_GOLD, g) |
48 |
48 |
call SetPlayerState(p, PLAYER_STATE_RESOURCE_LUMBER, b) |
call SetPlayerState(p, PLAYER_STATE_RESOURCE_LUMBER, b) |
49 |
49 |
|
|
|
50 |
|
// Only one instance of a hero type is allowed per player. |
|
51 |
|
call SetPlayerTechMaxAllowed(p, utype, 1) |
|
52 |
|
|
50 |
53 |
set e = AddSpellEffectTargetById('Aawa', EFFECT_TYPE_TARGET, u, "origin") |
set e = AddSpellEffectTargetById('Aawa', EFFECT_TYPE_TARGET, u, "origin") |
51 |
54 |
call DestroyEffect(e) |
call DestroyEffect(e) |
52 |
55 |
endfunction |
endfunction |
|
... |
... |
function altar_train_trig_init takes nothing returns trigger |
63 |
66 |
endfunction |
endfunction |
64 |
67 |
|
|
65 |
68 |
function altar_player_altar_type_get takes player p returns integer |
function altar_player_altar_type_get takes player p returns integer |
66 |
|
return 'halt' |
|
|
69 |
|
return 'h000' |
67 |
70 |
endfunction |
endfunction |
68 |
71 |
|
|
69 |
72 |
function altar_player_altar_unit_get takes player p returns unit |
function altar_player_altar_unit_get takes player p returns unit |
|
... |
... |
function altar_player_structure_init takes player p returns unit |
94 |
97 |
set u = CreateUnitAtLoc(p, utype, loc, bj_UNIT_FACING) |
set u = CreateUnitAtLoc(p, utype, loc, bj_UNIT_FACING) |
95 |
98 |
|
|
96 |
99 |
call SetUnitInvulnerable(u, true) |
call SetUnitInvulnerable(u, true) |
|
100 |
|
// Remove rally button to fit more hero buttons on the panel. |
97 |
101 |
call UnitRemoveAbility(u, 'ARal') |
call UnitRemoveAbility(u, 'ARal') |
98 |
102 |
|
|
99 |
103 |
if p == GetLocalPlayer() then |
if p == GetLocalPlayer() then |