Commit cf17139d authored by JoyJ's avatar JoyJ

fix bane with agharim shard; try fix life stealer

parent d10c7065
...@@ -224,7 +224,7 @@ function X.SkillsComplement() ...@@ -224,7 +224,7 @@ function X.SkillsComplement()
if abilityWFirstType ~= nil if abilityWFirstType ~= nil
and abilityWFirstType ~= abilityW:GetTargetType() and abilityWFirstType ~= abilityW:GetTargetType()
then then
bot:ActionQueue_UseAbilityOnEntity( abilityW, castWTarget:GetLocation() ) bot:ActionQueue_UseAbilityOnLocation( abilityW, castWTarget:GetLocation() )
else else
bot:ActionQueue_UseAbilityOnEntity( abilityW, castWTarget ) bot:ActionQueue_UseAbilityOnEntity( abilityW, castWTarget )
end end
......
...@@ -114,7 +114,7 @@ function X.SkillsComplement() ...@@ -114,7 +114,7 @@ function X.SkillsComplement()
local aether = J.IsItemAvailable( "item_aether_lens" ) local aether = J.IsItemAvailable( "item_aether_lens" )
if aether ~= nil then aetherRange = 250 end if aether ~= nil then aetherRange = 250 end
castQDesire, _, _, sMotive = X.ConsiderQ() castQDesire, sMotive = X.ConsiderQ()
if ( castQDesire > 0 ) then if ( castQDesire > 0 ) then
J.SetReportMotive( bDebugMode, sMotive ) J.SetReportMotive( bDebugMode, sMotive )
...@@ -203,7 +203,7 @@ function ConsiderQ() ...@@ -203,7 +203,7 @@ function ConsiderQ()
return BOT_ACTION_DESIRE_HIGH, sCastMotive return BOT_ACTION_DESIRE_HIGH, sCastMotive
end end
if J.GetEnemyCount( bot, 800 ) >= 3 if J.GetEnemyCount( bot, 800 ) >= 3 or (nHP < 0.5 and bot:WasRecentlyDamagedByAnyHero(2.0))
then then
sCastMotive = '先开BKB切入' sCastMotive = '先开BKB切入'
return BOT_ACTION_DESIRE_HIGH, sCastMotive return BOT_ACTION_DESIRE_HIGH, sCastMotive
...@@ -218,7 +218,7 @@ end ...@@ -218,7 +218,7 @@ end
function X.ConsiderF() function X.ConsiderF()
if not abilityF or not abilityF:IsFullyCastable() or abilityF:IsHidden() then return BOT_ACTION_DESIRE_NONE end if not abilityF or not abilityF:IsFullyCastable() or abilityF:IsHidden() then return BOT_ACTION_DESIRE_NONE end
local hp= 0.5 + bot:GetNearbyHeroes( 1200, true, BOT_MODE_NONE ) * 0.05 local hp= 0.5 + bot:GetNearbyHeroes( 1200, true, BOT_MODE_NONE ) * 0.2 - bot:GetNearbyHeroes( 1200, true, BOT_MODE_NONE ) * 0.1
if J.GetHP(bot)<hp then return BOT_ACTION_DESIRE_NONE end if J.GetHP(bot)<hp then return BOT_ACTION_DESIRE_NONE 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