-
Notifications
You must be signed in to change notification settings - Fork 6
/
hero_selection.lua
43 lines (37 loc) · 1.01 KB
/
hero_selection.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
----------------------------------------------------------------------------------------------------
local MyBots = {
"npc_dota_hero_undying",
"npc_dota_hero_keeper_of_the_light",
"npc_dota_hero_death_prophet",
"npc_dota_hero_venomancer",
"npc_dota_hero_shadow_shaman"
};
function Think()
local IDs = GetTeamPlayers(GetTeam());
for i,id in pairs(IDs) do
if IsPlayerBot(id) then
SelectHero(id, MyBots[i]);
end
end
end
----------------------------------------------------------------------------------------------------
function UpdateLaneAssignments()
if ( GetTeam() == TEAM_RADIANT ) then
return {
[1] = LANE_TOP,
[2] = LANE_TOP,
[3] = LANE_MID,
[4] = LANE_BOT,
[5] = LANE_BOT,
};
elseif ( GetTeam() == TEAM_DIRE ) then
return {
[1] = LANE_TOP,
[2] = LANE_TOP,
[3] = LANE_MID,
[4] = LANE_BOT,
[5] = LANE_BOT,
};
end
end
----------------------------------------------------------------------------------------------------