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
dbabd5b8
Commit
dbabd5b8
authored
Mar 24, 2023
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix muerta
parent
a4e4eb51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
BotLib/hero_muerta.lua
BotLib/hero_muerta.lua
+6
-6
No files found.
BotLib/hero_muerta.lua
View file @
dbabd5b8
...
...
@@ -148,7 +148,7 @@ function X.SkillsComplement()
if
aether
~=
nil
then
aetherRange
=
250
end
--无论如何,大招期间绝不逃跑
if
bot
:
HasModifier
(
'modifier_muerta_pierce_the_veil_buff'
)
then
if
bot
:
HasModifier
(
'modifier_muerta_pierce_the_veil_buff'
)
and
not
bot
:
IsDisarmed
()
then
--释放BKB
local
abilityBKB
=
J
.
IsItemAvailable
(
"item_black_king_bar"
)
...
...
@@ -156,7 +156,7 @@ function X.SkillsComplement()
and
abilityBKB
:
IsFullyCastable
()
and
bot
:
GetMana
()
>
abilityBKB
:
GetManaCost
()
then
bot
:
Action
Queue
_UseAbility
(
abilityBKB
)
bot
:
Action_UseAbility
(
abilityBKB
)
end
--释放疯脸
...
...
@@ -165,7 +165,7 @@ function X.SkillsComplement()
and
abilityMoM
:
IsFullyCastable
()
and
bot
:
GetMana
()
>
abilityMoM
:
GetManaCost
()
then
bot
:
Action
Queue
_UseAbility
(
abilityMoM
)
bot
:
Action_UseAbility
(
abilityMoM
)
end
local
attackList
=
J
.
FilterGroup
(
hEnemyList
,
function
(
u
)
...
...
@@ -218,7 +218,7 @@ function X.ConsiderQ()
local
nCastRange
=
abilityQ
:
GetCastRange
()
local
nCastPoint
=
abilityQ
:
GetCastPoint
()
local
nManaCost
=
abilityQ
:
GetManaCost
()
local
nDamage
=
abilityQ
:
GetAbilityDamage
()
local
nDamage
=
nSkillLV
*
75
local
nDamageType
=
DAMAGE_TYPE_MAGICAL
local
nInRangeEnemyList
=
J
.
GetAroundEnemyHeroList
(
nCastRange
)
local
hCastTarget
=
nil
...
...
@@ -349,8 +349,8 @@ function X.ConsiderR()
local
npcTarget
=
J
.
GetProperTarget
(
bot
)
if
J
.
IsValidHero
(
npcTarget
)
and
(
J
.
GetHP
(
npcTarget
)
>
0
.
25
or
#
nEnemysHerosInBonus
>=
2
)
and
(
J
.
IsInRange
(
npcTarget
,
bot
,
7
00
)
or
J
.
IsInRange
(
npcTarget
,
bot
,
npcTarget
:
GetAttackRange
()
+
80
)
)
and
(
J
.
IsInRange
(
npcTarget
,
bot
,
3
00
)
or
#
nEnemysHerosInBonus
>=
2
)
then
return
BOT_ACTION_DESIRE_HIGH
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