Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
dota2-ai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
JoyJ
dota2-ai
Commits
462df243
Commit
462df243
authored
Apr 01, 2023
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix abyssal_underlord and alchemist
parent
4595011f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
BotLib/hero_abyssal_underlord.lua
BotLib/hero_abyssal_underlord.lua
+1
-1
BotLib/hero_alchemist.lua
BotLib/hero_alchemist.lua
+1
-1
BotLib/hero_life_stealer.lua
BotLib/hero_life_stealer.lua
+8
-8
No files found.
BotLib/hero_abyssal_underlord.lua
View file @
462df243
...
...
@@ -219,7 +219,7 @@ function X.ConsiderQ()
local
nCanHurtEnemyAoE
=
bot
:
FindAoELocation
(
true
,
true
,
bot
:
GetLocation
(),
nCastRange
,
nRadius
+
20
,
0
,
0
)
if
nSkillLV
>
1
and
J
.
IsAllowedToSpam
(
bot
,
nManaCost
)
and
nCanHurtEnemyAoE
.
count
>=
2
then
nTargetLocation
=
nCanHurtEnemyAoE
.
targetloc
if
J
.
GetAllyCreepNearLoc
(
bot
,
nTargetLocation
,
400
)
>
1
then
if
#
J
.
GetAllyCreepNearLoc
(
bot
,
nTargetLocation
,
400
)
>
1
then
return
BOT_ACTION_DESIRE_HIGH
,
nTargetLocation
,
'Q消耗'
end
end
...
...
BotLib/hero_alchemist.lua
View file @
462df243
...
...
@@ -304,7 +304,7 @@ function X.ConsiderQ()
local
nCanHurtEnemyAoE
=
bot
:
FindAoELocation
(
true
,
false
,
bot
:
GetLocation
(),
nCastRange
,
nRadius
+
20
,
0
,
0
)
if
J
.
IsAllowedToSpam
(
bot
,
nManaCost
)
and
nCanHurtEnemyAoE
.
count
>=
3
then
nTargetLocation
=
nCanHurtEnemyAoE
.
targetloc
if
J
.
GetAllyCreepNearLoc
(
bot
,
nTargetLocation
,
400
)
>
1
then
if
#
J
.
GetAllyCreepNearLoc
(
bot
,
nTargetLocation
,
400
)
>
1
then
return
BOT_ACTION_DESIRE_HIGH
,
nTargetLocation
,
'Q消耗'
end
end
...
...
BotLib/hero_life_stealer.lua
View file @
462df243
local
X
=
{}
local
bDebugMode
=
fals
e
local
bDebugMode
=
tru
e
local
bot
=
GetBot
()
local
J
=
require
(
GetScriptDirectory
()
..
'/FunLib/jmz_func'
)
...
...
@@ -93,7 +93,8 @@ local abilityR = bot:GetAbilityByName( sAbilityList[6] )
local
castQDesire
local
castDDesire
,
castDTarget
local
castRDesire
local
castRDesire
,
castRTarget
local
castFDesire
local
nKeepMana
,
nMP
,
nHP
,
nLV
,
hEnemyList
,
hAllyList
,
botTarget
,
sMotive
local
aetherRange
=
0
...
...
@@ -138,14 +139,12 @@ function X.SkillsComplement()
end
castFDesire
,
castFTarget
,
sMotive
=
X
.
ConsiderF
()
castFDesire
,
sMotive
=
X
.
ConsiderF
()
if
(
castFDesire
>
0
)
then
J
.
SetReportMotive
(
bDebugMode
,
sMotive
)
J
.
SetQueuePtToINT
(
bot
,
false
)
bot
:
ActionQueue_UseAbility
(
abilityF
)
bot
:
ClearActions
(
true
)
bot
:
Action_UseAbility
(
abilityF
)
return
end
...
...
@@ -208,7 +207,8 @@ function X.ConsiderQ()
return
BOT_ACTION_DESIRE_HIGH
,
sCastMotive
end
if
J
.
IsRetreating
(
bot
)
and
bot
:
GetActiveMode
()
~=
BOT_MODE_FARM
then
if
J
.
IsRetreating
(
bot
)
and
bot
:
GetActiveMode
()
~=
BOT_MODE_FARM
and
bot
:
WasRecentlyDamagedByAnyHero
(
2
.
0
)
and
nHP
<
0
.
7
then
sCastMotive
=
'撤退魔免'
return
BOT_ACTION_DESIRE_HIGH
,
sCastMotive
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment