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
8b3850d6
Commit
8b3850d6
authored
Apr 23, 2023
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix necrolyte ult calculate damage reduction twice
parent
547a7d40
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
28 deletions
+4
-28
BotLib/hero_necrolyte.lua
BotLib/hero_necrolyte.lua
+0
-24
FunLib/jmz_func.lua
FunLib/jmz_func.lua
+4
-4
No files found.
BotLib/hero_necrolyte.lua
View file @
8b3850d6
...
...
@@ -511,30 +511,6 @@ function X.GetEstDamage( bot, npcTarget, nDamagePerHealth )
if
AroundTargetAllyCount
>=
2
then
EstDamage
=
EstDamage
+
targetMaxHealth
*
0
.
08
*
(
AroundTargetAllyCount
-
1
)
end
if
npcTarget
:
HasModifier
(
"modifier_medusa_mana_shield"
)
then
local
EstDamageMaxReduce
=
EstDamage
*
0
.
6
if
npcTarget
:
GetMana
()
*
2
.
5
>=
EstDamageMaxReduce
then
EstDamage
=
EstDamage
*
0
.
4
else
EstDamage
=
EstDamage
*
0
.
4
+
EstDamageMaxReduce
-
npcTarget
:
GetMana
()
*
2
.
5
end
end
if
npcTarget
:
GetUnitName
()
==
"npc_dota_hero_bristleback"
and
not
npcTarget
:
IsFacingLocation
(
GetBot
():
GetLocation
(),
120
)
then
EstDamage
=
EstDamage
*
0
.
7
end
if
npcTarget
:
HasModifier
(
"modifier_kunkka_ghost_ship_damage_delay"
)
then
local
buffTime
=
J
.
GetModifierTime
(
npcTarget
,
"modifier_kunkka_ghost_ship_damage_delay"
)
if
buffTime
>
2
.
0
then
EstDamage
=
EstDamage
*
0
.
55
end
end
if
npcTarget
:
HasModifier
(
"modifier_templar_assassin_refraction_absorb"
)
then
EstDamage
=
0
end
return
EstDamage
...
...
FunLib/jmz_func.lua
View file @
8b3850d6
...
...
@@ -868,12 +868,12 @@ function J.WillMagicKillTarget( bot, npcTarget, dmg, nDelay )
if
npcTarget
:
HasModifier
(
"modifier_medusa_mana_shield"
)
then
local
EstDamageMaxReduce
=
EstDamage
*
0
.
6
if
npcTarget
:
GetMana
()
*
2
.
5
>=
EstDamageMaxReduce
local
EstDamageMaxReduce
=
EstDamage
*
0
.
98
if
npcTarget
:
GetMana
()
*
3
.
2
>=
EstDamageMaxReduce
then
EstDamage
=
EstDamage
*
0
.
4
EstDamage
=
EstDamage
*
0
.
02
else
EstDamage
=
EstDamage
*
0
.
4
+
EstDamageMaxReduce
-
npcTarget
:
GetMana
()
*
2
.
5
EstDamage
=
EstDamage
-
(
npcTarget
:
GetMana
()
*
3
.
2
)
*
0
.
98
end
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