-
-
Notifications
You must be signed in to change notification settings - Fork 86
/
ability_item_usage_juggernaut.lua
104 lines (91 loc) · 2.36 KB
/
ability_item_usage_juggernaut.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
----------------------------------------------------------------------------
-- Ranked Matchmaking AI v1.1 NewStructure
-- Author: adamqqq Email:[email protected]
----------------------------------------------------------------------------
--------------------------------------
-- General Initialization
--------------------------------------
local utility = require(GetScriptDirectory() .. "/utility")
local ability_item_usage_generic = require(GetScriptDirectory() .. "/ability_item_usage_generic")
local AbilityExtensions = require(GetScriptDirectory() .. "/util/AbilityAbstraction")
local debugmode = false
local npcBot = GetBot()
if npcBot == nil or npcBot:IsIllusion() then
return
end
local Talents = {}
local Abilities = {}
local AbilitiesReal = {}
ability_item_usage_generic.InitAbility(Abilities, AbilitiesReal, Talents)
local AbilityToLevelUp =
{
Abilities[1],
Abilities[3],
Abilities[1],
Abilities[2],
Abilities[1],
Abilities[5],
Abilities[1],
Abilities[2],
Abilities[2],
"talent",
Abilities[2],
Abilities[5],
Abilities[3],
Abilities[3],
"talent",
Abilities[3],
"nil",
Abilities[5],
"nil",
"talent",
"nil",
"nil",
"nil",
"nil",
"talent",
}
local TalentTree = {
function()
return Talents[2]
end,
function()
return Talents[4]
end,
function()
return Talents[5]
end,
function()
return Talents[8]
end
}
-- check skill build vs current level
utility.CheckAbilityBuild(AbilityToLevelUp)
function BuybackUsageThink()
ability_item_usage_generic.BuybackUsageThink();
end
function CourierUsageThink()
ability_item_usage_generic.CourierUsageThink();
end
function AbilityLevelUpThink()
ability_item_usage_generic.AbilityLevelUpThink2(AbilityToLevelUp, TalentTree)
end
--------------------------------------
-- Ability Usage Thinking
--------------------------------------
local cast = {}
cast.Desire = {}
cast.Target = {}
cast.Type = {}
local Consider = {}
local CanCast = { utility.NCanCast, utility.NCanCast, utility.NCanCast, utility.UCanCast }
local enemyDisabled = utility.enemyDisabled
function GetComboDamage()
return ability_item_usage_generic.GetComboDamage(AbilitiesReal)
end
function GetComboMana()
return ability_item_usage_generic.GetComboMana(AbilitiesReal)
end
function CourierUsageThink()
ability_item_usage_generic.CourierUsageThink()
end