Commit dbabd5b8 authored by JoyJ's avatar JoyJ

fix muerta

parent a4e4eb51
...@@ -148,7 +148,7 @@ function X.SkillsComplement() ...@@ -148,7 +148,7 @@ function X.SkillsComplement()
if aether ~= nil then aetherRange = 250 end 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 --释放BKB
local abilityBKB = J.IsItemAvailable( "item_black_king_bar" ) local abilityBKB = J.IsItemAvailable( "item_black_king_bar" )
...@@ -156,7 +156,7 @@ function X.SkillsComplement() ...@@ -156,7 +156,7 @@ function X.SkillsComplement()
and abilityBKB:IsFullyCastable() and abilityBKB:IsFullyCastable()
and bot:GetMana() > abilityBKB:GetManaCost() and bot:GetMana() > abilityBKB:GetManaCost()
then then
bot:ActionQueue_UseAbility( abilityBKB ) bot:Action_UseAbility( abilityBKB )
end end
--释放疯脸 --释放疯脸
...@@ -165,7 +165,7 @@ function X.SkillsComplement() ...@@ -165,7 +165,7 @@ function X.SkillsComplement()
and abilityMoM:IsFullyCastable() and abilityMoM:IsFullyCastable()
and bot:GetMana() > abilityMoM:GetManaCost() and bot:GetMana() > abilityMoM:GetManaCost()
then then
bot:ActionQueue_UseAbility( abilityMoM ) bot:Action_UseAbility( abilityMoM )
end end
local attackList = J.FilterGroup(hEnemyList,function(u) local attackList = J.FilterGroup(hEnemyList,function(u)
...@@ -218,7 +218,7 @@ function X.ConsiderQ() ...@@ -218,7 +218,7 @@ function X.ConsiderQ()
local nCastRange = abilityQ:GetCastRange() local nCastRange = abilityQ:GetCastRange()
local nCastPoint = abilityQ:GetCastPoint() local nCastPoint = abilityQ:GetCastPoint()
local nManaCost = abilityQ:GetManaCost() local nManaCost = abilityQ:GetManaCost()
local nDamage = abilityQ:GetAbilityDamage() local nDamage = nSkillLV * 75
local nDamageType = DAMAGE_TYPE_MAGICAL local nDamageType = DAMAGE_TYPE_MAGICAL
local nInRangeEnemyList = J.GetAroundEnemyHeroList( nCastRange ) local nInRangeEnemyList = J.GetAroundEnemyHeroList( nCastRange )
local hCastTarget = nil local hCastTarget = nil
...@@ -349,8 +349,8 @@ function X.ConsiderR() ...@@ -349,8 +349,8 @@ function X.ConsiderR()
local npcTarget = J.GetProperTarget( bot ) local npcTarget = J.GetProperTarget( bot )
if J.IsValidHero( npcTarget ) if J.IsValidHero( npcTarget )
and ( J.GetHP( npcTarget ) > 0.25 or #nEnemysHerosInBonus >= 2 ) and ( J.GetHP( npcTarget ) > 0.25 or #nEnemysHerosInBonus >= 2 )
and ( J.IsInRange( npcTarget, bot, 700 ) and ( J.IsInRange( npcTarget, bot, 300 )
or J.IsInRange( npcTarget, bot, npcTarget:GetAttackRange() + 80 ) ) or #nEnemysHerosInBonus >= 2 )
then then
return BOT_ACTION_DESIRE_HIGH return BOT_ACTION_DESIRE_HIGH
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment