From 5b987785b646d9383986b9eb706c40b22f5897d2 Mon Sep 17 00:00:00 2001 From: Kyle Coburn Date: Sun, 12 Apr 2015 11:31:45 -0700 Subject: [PATCH] Tweak lategame redbar strategies --- ai/red/strategies.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ai/red/strategies.lua b/ai/red/strategies.lua index 1199826..20c98c3 100644 --- a/ai/red/strategies.lua +++ b/ai/red/strategies.lua @@ -1673,7 +1673,7 @@ strategyFunctions.fightKoga = function() local curr_hp = Combat.hp() if Pokemon.isOpponent("weezing") then local drillHp = (Pokemon.index(0, "level") > 40) and 12 or 9 - if curr_hp > 0 and curr_hp < drillHp + 10 and Battle.pp("horn_drill") > 0 then + if curr_hp > 0 and curr_hp < drillHp and Battle.pp("horn_drill") > 0 then forced = "horn_drill" if not status.drilling then status.drilling = true @@ -1860,7 +1860,7 @@ end strategyFunctions.fightGiovanni = function() if Battle.isActive() then if Strategies.initialize() then - status.needsXSpecial = Battle.pp("earthquake") <= (riskGiovanni and 4 or 2) + status.needsXSpecial = not Combat.inRedBar() or Battle.pp("earthquake") <= (riskGiovanni and 4 or 2) status.canProgress = true end local forced @@ -2287,7 +2287,7 @@ strategyFunctions.champion = function() print("v"..VERSION..": "..Utils.frames().." frames, with seed "..Strategies.seed) print("Please save this seed number to share, if you would like proof of your run!") end - elseif status.tries == 1000 then + elseif status.tries == 500 then Bridge.chat("beat the game in "..status.canProgress.." !") end status.tries = status.tries + 1