Commit dbabd5b8 authored by JoyJ's avatar JoyJ

fix muerta

parent a4e4eb51
......@@ -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:ActionQueue_UseAbility( abilityBKB )
bot:Action_UseAbility( abilityBKB )
end
--释放疯脸
......@@ -165,7 +165,7 @@ function X.SkillsComplement()
and abilityMoM:IsFullyCastable()
and bot:GetMana() > abilityMoM:GetManaCost()
then
bot:ActionQueue_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, 700 )
or J.IsInRange( npcTarget, bot, npcTarget:GetAttackRange() + 80 ) )
and ( J.IsInRange( npcTarget, bot, 300 )
or #nEnemysHerosInBonus >= 2 )
then
return BOT_ACTION_DESIRE_HIGH
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