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
f2f0e0bf
Commit
f2f0e0bf
authored
Apr 03, 2023
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update aetherRange
parent
e1de1801
Changes
41
Hide whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
77 additions
and
75 deletions
+77
-75
BotLib/hero_abyssal_underlord.lua
BotLib/hero_abyssal_underlord.lua
+2
-2
BotLib/hero_alchemist.lua
BotLib/hero_alchemist.lua
+2
-2
BotLib/hero_axe.lua
BotLib/hero_axe.lua
+1
-1
BotLib/hero_bane.lua
BotLib/hero_bane.lua
+2
-2
BotLib/hero_bounty_hunter.lua
BotLib/hero_bounty_hunter.lua
+2
-2
BotLib/hero_centaur.lua
BotLib/hero_centaur.lua
+2
-2
BotLib/hero_clinkz.lua
BotLib/hero_clinkz.lua
+2
-2
BotLib/hero_crystal_maiden.lua
BotLib/hero_crystal_maiden.lua
+1
-1
BotLib/hero_dazzle.lua
BotLib/hero_dazzle.lua
+1
-1
BotLib/hero_death_prophet.lua
BotLib/hero_death_prophet.lua
+2
-2
BotLib/hero_disruptor.lua
BotLib/hero_disruptor.lua
+2
-2
BotLib/hero_huskar.lua
BotLib/hero_huskar.lua
+2
-2
BotLib/hero_jakiro.lua
BotLib/hero_jakiro.lua
+2
-2
BotLib/hero_juggernaut.lua
BotLib/hero_juggernaut.lua
+2
-2
BotLib/hero_legion_commander.lua
BotLib/hero_legion_commander.lua
+2
-2
BotLib/hero_lich.lua
BotLib/hero_lich.lua
+2
-2
BotLib/hero_life_stealer.lua
BotLib/hero_life_stealer.lua
+2
-2
BotLib/hero_lina.lua
BotLib/hero_lina.lua
+2
-2
BotLib/hero_lion.lua
BotLib/hero_lion.lua
+2
-2
BotLib/hero_luna.lua
BotLib/hero_luna.lua
+2
-2
BotLib/hero_mirana.lua
BotLib/hero_mirana.lua
+1
-1
BotLib/hero_muerta.lua
BotLib/hero_muerta.lua
+2
-2
BotLib/hero_naga_siren.lua
BotLib/hero_naga_siren.lua
+1
-1
BotLib/hero_ogre_magi.lua
BotLib/hero_ogre_magi.lua
+2
-2
BotLib/hero_omniknight.lua
BotLib/hero_omniknight.lua
+2
-2
BotLib/hero_oracle.lua
BotLib/hero_oracle.lua
+3
-2
BotLib/hero_phantom_lancer.lua
BotLib/hero_phantom_lancer.lua
+2
-2
BotLib/hero_pugna.lua
BotLib/hero_pugna.lua
+2
-2
BotLib/hero_queenofpain.lua
BotLib/hero_queenofpain.lua
+1
-1
BotLib/hero_razor.lua
BotLib/hero_razor.lua
+2
-2
BotLib/hero_riki.lua
BotLib/hero_riki.lua
+2
-2
BotLib/hero_sand_king.lua
BotLib/hero_sand_king.lua
+2
-2
BotLib/hero_shadow_shaman.lua
BotLib/hero_shadow_shaman.lua
+2
-2
BotLib/hero_silencer.lua
BotLib/hero_silencer.lua
+2
-2
BotLib/hero_skywrath_mage.lua
BotLib/hero_skywrath_mage.lua
+2
-2
BotLib/hero_tidehunter.lua
BotLib/hero_tidehunter.lua
+2
-2
BotLib/hero_warlock.lua
BotLib/hero_warlock.lua
+2
-2
BotLib/hero_windrunner.lua
BotLib/hero_windrunner.lua
+2
-2
BotLib/hero_witch_doctor.lua
BotLib/hero_witch_doctor.lua
+2
-2
BotLib/hero_zuus.lua
BotLib/hero_zuus.lua
+2
-2
FunLib/aba_buff.lua
FunLib/aba_buff.lua
+2
-1
No files found.
BotLib/hero_abyssal_underlord.lua
View file @
f2f0e0bf
...
...
@@ -122,8 +122,8 @@ function X.SkillsComplement()
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castQDesire
,
castQLocation
,
sMotive
=
X
.
ConsiderQ
()
if
(
castQDesire
>
0
)
then
...
...
BotLib/hero_alchemist.lua
View file @
f2f0e0bf
...
...
@@ -110,8 +110,8 @@ function X.SkillsComplement()
hEnemyList
=
bot
:
GetNearbyHeroes
(
1600
,
true
,
BOT_MODE_NONE
)
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castW2Desire
,
castW2Target
,
sMotive
=
X
.
ConsiderW2
()
if
(
castW2Desire
>
0
)
then
...
...
BotLib/hero_axe.lua
View file @
f2f0e0bf
...
...
@@ -168,7 +168,7 @@ function X.SkillsComplement()
--计算天赋可能带来的通用变化
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
225
end
castRDesire
,
castRTarget
,
sMotive
=
X
.
ConsiderR
()
...
...
BotLib/hero_bane.lua
View file @
f2f0e0bf
...
...
@@ -195,8 +195,8 @@ function X.SkillsComplement()
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
-- if talent4:IsTrained() then aetherRange = aetherRange + talent4:GetSpecialValueInt( "value" ) end
if
talent7
:
IsTrained
()
then
talent7Damage
=
talent7
:
GetSpecialValueInt
(
"value"
)
end
...
...
BotLib/hero_bounty_hunter.lua
View file @
f2f0e0bf
...
...
@@ -172,8 +172,8 @@ function X.SkillsComplement()
hEnemyList
=
bot
:
GetNearbyHeroes
(
1600
,
true
,
BOT_MODE_NONE
)
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
if
talent3
:
IsTrained
()
then
talent3Damage
=
talent3
:
GetSpecialValueInt
(
"value"
)
end
...
...
BotLib/hero_centaur.lua
View file @
f2f0e0bf
...
...
@@ -105,8 +105,8 @@ function X.SkillsComplement()
hEnemyList
=
bot
:
GetNearbyHeroes
(
1600
,
true
,
BOT_MODE_NONE
)
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castQDesire
,
sMotive
=
X
.
ConsiderQ
()
if
(
castQDesire
>
0
)
then
...
...
BotLib/hero_clinkz.lua
View file @
f2f0e0bf
...
...
@@ -149,8 +149,8 @@ function X.SkillsComplement()
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castEDesire
,
sMotive
=
X
.
ConsiderE
()
if
(
castEDesire
>
0
)
...
...
BotLib/hero_crystal_maiden.lua
View file @
f2f0e0bf
...
...
@@ -167,7 +167,7 @@ function X.SkillsComplement()
nHP
=
bot
:
GetHealth
()
/
bot
:
GetMaxHealth
()
nLV
=
bot
:
GetLevel
()
local
aether
=
J
.
IsItemAvailable
(
'item_aether_lens'
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
-- if talent2:IsTrained() then aetherRange = aetherRange + talent2:GetSpecialValueInt( 'value' ) end
...
...
BotLib/hero_dazzle.lua
View file @
f2f0e0bf
...
...
@@ -180,7 +180,7 @@ function X.SkillsComplement()
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
225
end
...
...
BotLib/hero_death_prophet.lua
View file @
f2f0e0bf
...
...
@@ -187,8 +187,8 @@ function X.SkillsComplement()
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
-- if talent4:IsTrained() then aetherRange = aetherRange + talent4:GetSpecialValueInt( "value" ) end
castWDesire
,
castWLocation
,
sMotive
=
X
.
ConsiderW
()
...
...
BotLib/hero_disruptor.lua
View file @
f2f0e0bf
...
...
@@ -164,8 +164,8 @@ function X.SkillsComplement()
hEnemyList
=
bot
:
GetNearbyHeroes
(
1600
,
true
,
BOT_MODE_NONE
)
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castWDesire
,
castWTarget
,
sMotive
=
X
.
ConsiderW
()
...
...
BotLib/hero_huskar.lua
View file @
f2f0e0bf
...
...
@@ -160,8 +160,8 @@ function X.SkillsComplement()
abilityH
=
J
.
IsItemAvailable
(
"item_hurricane_pike"
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
-- if talent6:IsTrained() then talent6Range = talent6:GetSpecialValueInt( "value" ) end
...
...
BotLib/hero_jakiro.lua
View file @
f2f0e0bf
...
...
@@ -185,8 +185,8 @@ function X.SkillsComplement()
hEnemyHeroList
=
bot
:
GetNearbyHeroes
(
1600
,
true
,
BOT_MODE_NONE
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castWDesire
,
castWLocation
=
X
.
ConsiderW
()
...
...
BotLib/hero_juggernaut.lua
View file @
f2f0e0bf
...
...
@@ -160,8 +160,8 @@ function X.SkillsComplement()
--计算天赋可能带来的通用变化
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castDDesire
,
castDTarget
,
sMotive
=
X
.
ConsiderD
()
...
...
BotLib/hero_legion_commander.lua
View file @
f2f0e0bf
...
...
@@ -172,8 +172,8 @@ function X.SkillsComplement()
--计算天赋可能带来的通用变化
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castRDesire
,
castRTarget
,
sMotive
=
X
.
ConsiderR
()
...
...
BotLib/hero_lich.lua
View file @
f2f0e0bf
...
...
@@ -196,8 +196,8 @@ function X.SkillsComplement()
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1200
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
-- if talent1:IsTrained() then aetherRange = aetherRange + talent1:GetSpecialValueInt( "value" ) end
...
...
BotLib/hero_life_stealer.lua
View file @
f2f0e0bf
...
...
@@ -112,8 +112,8 @@ function X.SkillsComplement()
hEnemyList
=
bot
:
GetNearbyHeroes
(
1600
,
true
,
BOT_MODE_NONE
)
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castQDesire
,
sMotive
=
X
.
ConsiderQ
()
if
(
castQDesire
>
0
)
then
...
...
BotLib/hero_lina.lua
View file @
f2f0e0bf
...
...
@@ -186,8 +186,8 @@ function X.SkillsComplement()
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
-- if talent2:IsTrained() then aetherRange = aetherRange + talent2:GetSpecialValueInt( "value" ) end
if
talent4
:
IsTrained
()
then
talent4Damage
=
talent4Damage
+
talent4
:
GetSpecialValueInt
(
"value"
)
end
...
...
BotLib/hero_lion.lua
View file @
f2f0e0bf
...
...
@@ -185,8 +185,8 @@ function X.SkillsComplement()
hEnemyList
=
bot
:
GetNearbyHeroes
(
1600
,
true
,
BOT_MODE_NONE
)
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
-- if talent4:IsTrained() then aetherRange = aetherRange + talent4:GetSpecialValueInt( "value" ) end
...
...
BotLib/hero_luna.lua
View file @
f2f0e0bf
...
...
@@ -157,8 +157,8 @@ function X.SkillsComplement()
nHP
=
bot
:
GetHealth
()
/
bot
:
GetMaxHealth
()
nLV
=
bot
:
GetLevel
()
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
-- if talent2:IsTrained() then aetherRange = aetherRange + talent2:GetSpecialValueInt( "value" ) end
if
talent6
:
IsTrained
()
then
talent6BonusDamage
=
talent6
:
GetSpecialValueInt
(
"value"
)
end
...
...
BotLib/hero_mirana.lua
View file @
f2f0e0bf
...
...
@@ -149,7 +149,7 @@ function X.SkillsComplement()
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
);
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
);
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castQDesire
,
castQTarget
,
sMotive
=
X
.
ConsiderQ
();
...
...
BotLib/hero_muerta.lua
View file @
f2f0e0bf
...
...
@@ -144,8 +144,8 @@ function X.SkillsComplement()
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
)
--计算天赋可能带来的通用变化
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
--无论如何,大招期间绝不逃跑
if
bot
:
HasModifier
(
'modifier_muerta_pierce_the_veil_buff'
)
and
not
bot
:
IsDisarmed
()
then
...
...
BotLib/hero_naga_siren.lua
View file @
f2f0e0bf
...
...
@@ -156,7 +156,7 @@ function X.SkillsComplement()
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
);
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castQDesire
,
castQTarget
,
sMotive
=
X
.
ConsiderQ
();
...
...
BotLib/hero_ogre_magi.lua
View file @
f2f0e0bf
...
...
@@ -220,8 +220,8 @@ function X.SkillsComplement()
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
-- if talent2:IsTrained() then aetherRange = aetherRange + talent2:GetSpecialValueInt( "value" ) end
if
talent8
:
IsTrained
()
then
talent8Damage
=
talent8Damage
+
talent8
:
GetSpecialValueInt
(
"value"
)
end
...
...
BotLib/hero_omniknight.lua
View file @
f2f0e0bf
...
...
@@ -177,8 +177,8 @@ function X.SkillsComplement()
--计算天赋可能带来的通用变化
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castRDesire
,
castRTarget
,
sMotive
=
X
.
ConsiderR
()
...
...
BotLib/hero_oracle.lua
View file @
f2f0e0bf
...
...
@@ -171,8 +171,8 @@ function X.SkillsComplement()
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
-- if talent3:IsTrained() then aetherRange = aetherRange + talent3:GetSpecialValueInt( "value" ) end
castRDesire
,
castRTarget
,
sMotive
=
X
.
ConsiderR
()
...
...
@@ -536,6 +536,7 @@ function X.ConsiderR()
end
if
J
.
IsGoingOnSomeone
(
ally
)
and
J
.
GetHP
(
ally
)
<
0
.
3
and
not
J
.
HasForbiddenModifier
(
ally
)
then
local
allyTarget
=
J
.
GetProperTarget
(
ally
)
if
J
.
IsValidHero
(
allyTarget
)
...
...
BotLib/hero_phantom_lancer.lua
View file @
f2f0e0bf
...
...
@@ -167,8 +167,8 @@ function X.SkillsComplement()
if
abilityE
:
IsTrained
()
then
boostRange
=
abilityE
:
GetSpecialValueInt
(
"max_distance"
)
end
-- if talent4:IsTrained() then talent4Damage = talent4:GetSpecialValueInt( "value" ) end
if
talent5
:
IsTrained
()
then
boostRange
=
boostRange
+
talent5
:
GetSpecialValueInt
(
"value"
)
end
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castQDesire
,
castQTarget
,
sMotive
=
X
.
ConsiderQ
()
...
...
BotLib/hero_pugna.lua
View file @
f2f0e0bf
...
...
@@ -178,8 +178,8 @@ function X.SkillsComplement()
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
if
talent7
:
IsTrained
()
then
talent7Damage
=
talent7
:
GetSpecialValueInt
(
"value"
)
end
...
...
BotLib/hero_queenofpain.lua
View file @
f2f0e0bf
...
...
@@ -173,7 +173,7 @@ function X.SkillsComplement()
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
);
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
);
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castRDesire
,
castRTarget
,
sMotive
=
X
.
ConsiderR
();
...
...
BotLib/hero_razor.lua
View file @
f2f0e0bf
...
...
@@ -172,8 +172,8 @@ function X.SkillsComplement()
botTarget
=
J
.
GetProperTarget
(
bot
)
hEnemyList
=
bot
:
GetNearbyHeroes
(
1600
,
true
,
BOT_MODE_NONE
)
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
if
#
hEnemyList
<=
1
then
aetherRange
=
aetherRange
+
200
end
...
...
BotLib/hero_riki.lua
View file @
f2f0e0bf
...
...
@@ -143,8 +143,8 @@ function X.SkillsComplement()
nAttackPoint
=
bot
:
GetSecondsPerAttack
()
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castQDesire
,
castQTarget
,
sMotive
=
X
.
ConsiderQ
()
if
(
castQDesire
>
0
)
...
...
BotLib/hero_sand_king.lua
View file @
f2f0e0bf
...
...
@@ -167,8 +167,8 @@ function X.SkillsComplement()
hEnemyList
=
bot
:
GetNearbyHeroes
(
1600
,
true
,
BOT_MODE_NONE
)
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castQDesire
,
castQTarget
,
sMotive
=
X
.
ConsiderQ
()
if
(
castQDesire
>
0
)
...
...
BotLib/hero_shadow_shaman.lua
View file @
f2f0e0bf
...
...
@@ -184,8 +184,8 @@ function X.SkillsComplement()
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
-- if talent3:IsTrained() then aetherRange = aetherRange + talent3:GetSpecialValueInt( "value" ) end
if
talent7
:
IsTrained
()
then
talent7Damage
=
talent7
:
GetSpecialValueInt
(
"value"
)
end
...
...
BotLib/hero_silencer.lua
View file @
f2f0e0bf
...
...
@@ -169,8 +169,8 @@ function X.SkillsComplement()
hEnemyHeroList
=
bot
:
GetNearbyHeroes
(
1600
,
true
,
BOT_MODE_NONE
)
--计算天赋可能带来的变化
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castRDesire
=
X
.
ConsiderR
()
...
...
BotLib/hero_skywrath_mage.lua
View file @
f2f0e0bf
...
...
@@ -179,8 +179,8 @@ function X.SkillsComplement()
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1600
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castEDesire
,
castETarget
,
sMotive
=
X
.
ConsiderE
()
...
...
BotLib/hero_tidehunter.lua
View file @
f2f0e0bf
...
...
@@ -159,8 +159,8 @@ function X.SkillsComplement()
--计算天赋可能带来的通用变化
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castRDesire
,
sMotive
=
X
.
ConsiderR
()
...
...
BotLib/hero_warlock.lua
View file @
f2f0e0bf
...
...
@@ -207,8 +207,8 @@ function X.SkillsComplement()
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castRFRDesire
,
castRFRLocation
=
X
.
ConsiderRFR
()
...
...
BotLib/hero_windrunner.lua
View file @
f2f0e0bf
...
...
@@ -194,8 +194,8 @@ function X.SkillsComplement()
--计算天赋可能带来的通用变化
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castQDesire
,
castQTarget
,
sMotive
=
X
.
ConsiderQ
()
if
castQDesire
>
0
...
...
BotLib/hero_witch_doctor.lua
View file @
f2f0e0bf
...
...
@@ -185,8 +185,8 @@ function X.SkillsComplement()
hAllyList
=
J
.
GetAlliesNearLoc
(
bot
:
GetLocation
(),
1200
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
castASDesire
,
sMotive
=
X
.
ConsiderAS
()
...
...
BotLib/hero_zuus.lua
View file @
f2f0e0bf
...
...
@@ -177,8 +177,8 @@ function X.SkillsComplement()
nHealthPercentage
=
bot
:
GetHealth
()
/
bot
:
GetMaxHealth
()
hEnemyHeroList
=
bot
:
GetNearbyHeroes
(
1600
,
true
,
BOT_MODE_NONE
)
local
aether
=
J
.
IsItemAvailable
(
"item_aether_lens"
)
if
aether
~=
nil
then
aetherRange
=
250
end
aetherRange
=
J
.
GetBonusCastRange
(
bot
)
if
abilityAS
:
IsTrained
()
then
abilityASBonus
=
0
.
09
end
if
talent8
:
IsTrained
()
then
talentDamage
=
talentDamage
+
talent8
:
GetSpecialValueInt
(
"value"
)
end
...
...
FunLib/aba_buff.lua
View file @
f2f0e0bf
...
...
@@ -22,6 +22,7 @@ Buff["enemy_is_immune"] = {
"modifier_winter_wyvern_winters_curse_aura"
,
--冰龙大
"modifier_troll_warlord_battle_trance"
,
--巨魔大
"modifier_naga_siren_song_of_the_siren"
,
--娜迦大
"modifier_skeleton_king_reincarnation_scepter_active"
,
--骷髅王A杖
--"modifier_modifier_dazzle_shallow_grave",
--"modifier_oracle_false_promise_timer",
--"modifier_item_blade_mail_reflect",
...
...
@@ -34,7 +35,7 @@ Buff["enemy_is_undead"] = {
"modifier_dazzle_shallow_grave"
,
"modifier_oracle_false_promise_timer"
,
"modifier_abaddon_borrowed_time"
,
"modifier_skeleton_king_reincarnation_scepter_active"
,
}
Buff
[
"enemy_not_illusion"
]
=
{
...
...
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