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
cf17139d
Commit
cf17139d
authored
Mar 06, 2023
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bane with agharim shard; try fix life stealer
parent
d10c7065
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
BotLib/hero_bane.lua
BotLib/hero_bane.lua
+1
-1
BotLib/hero_life_stealer.lua
BotLib/hero_life_stealer.lua
+3
-3
No files found.
BotLib/hero_bane.lua
View file @
cf17139d
...
...
@@ -224,7 +224,7 @@ function X.SkillsComplement()
if
abilityWFirstType
~=
nil
and
abilityWFirstType
~=
abilityW
:
GetTargetType
()
then
bot
:
ActionQueue_UseAbilityOn
Entity
(
abilityW
,
castWTarget
:
GetLocation
()
)
bot
:
ActionQueue_UseAbilityOn
Location
(
abilityW
,
castWTarget
:
GetLocation
()
)
else
bot
:
ActionQueue_UseAbilityOnEntity
(
abilityW
,
castWTarget
)
end
...
...
BotLib/hero_life_stealer.lua
View file @
cf17139d
...
...
@@ -114,7 +114,7 @@ function X.SkillsComplement()
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
castQDesire
,
_
,
_
,
sMotive
=
X
.
ConsiderQ
()
castQDesire
,
sMotive
=
X
.
ConsiderQ
()
if
(
castQDesire
>
0
)
then
J
.
SetReportMotive
(
bDebugMode
,
sMotive
)
...
...
@@ -203,7 +203,7 @@ function ConsiderQ()
return
BOT_ACTION_DESIRE_HIGH
,
sCastMotive
end
if
J
.
GetEnemyCount
(
bot
,
800
)
>=
3
if
J
.
GetEnemyCount
(
bot
,
800
)
>=
3
or
(
nHP
<
0
.
5
and
bot
:
WasRecentlyDamagedByAnyHero
(
2
.
0
))
then
sCastMotive
=
'先开BKB切入'
return
BOT_ACTION_DESIRE_HIGH
,
sCastMotive
...
...
@@ -218,7 +218,7 @@ end
function
X
.
ConsiderF
()
if
not
abilityF
or
not
abilityF
:
IsFullyCastable
()
or
abilityF
:
IsHidden
()
then
return
BOT_ACTION_DESIRE_NONE
end
local
hp
=
0
.
5
+
bot
:
GetNearbyHeroes
(
1200
,
true
,
BOT_MODE_NONE
)
*
0
.
05
local
hp
=
0
.
5
+
bot
:
GetNearbyHeroes
(
1200
,
true
,
BOT_MODE_NONE
)
*
0
.
2
-
bot
:
GetNearbyHeroes
(
1200
,
true
,
BOT_MODE_NONE
)
*
0
.
1
if
J
.
GetHP
(
bot
)
<
hp
then
return
BOT_ACTION_DESIRE_NONE
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