diff --git a/ai/red/strategies.lua b/ai/red/strategies.lua index 6fe5825..9a68c9b 100644 --- a/ai/red/strategies.lua +++ b/ai/red/strategies.lua @@ -277,16 +277,6 @@ end -- tweetVictoryRoad -strategyFunctions.bicycle = function() - if Memory.value("player", "bicycle") == 1 then - if Textbox.handle() then - return true - end - else - return Strategies.useItem({item="bicycle"}) - end -end - -- Route strategyFunctions.squirtleIChooseYou = function() diff --git a/ai/strategies.lua b/ai/strategies.lua index c1730dd..373a544 100644 --- a/ai/strategies.lua +++ b/ai/strategies.lua @@ -470,6 +470,16 @@ Strategies.functions = { return true end, + bicycle = function() + if Memory.value("player", "bicycle") == 1 then + if Menu.close() then + return true + end + else + return Strategies.useItem({item="bicycle"}) + end + end, + startFrames = function() Strategies.frames = 0 return true diff --git a/ai/yellow/strategies.lua b/ai/yellow/strategies.lua index f9cc9d2..a8f4511 100644 --- a/ai/yellow/strategies.lua +++ b/ai/yellow/strategies.lua @@ -134,16 +134,6 @@ local function takeCenter(pp, startMap, entranceX, entranceY, finishX) Walk.step(px, py) end -strategyFunctions.bicycle = function() - if Memory.value("battle", "menu") == 19 then - if Textbox.handle() then - return true - end - else - return Strategies.useItem({item="bicycle"}) - end -end - function Strategies.requiresE4Center() return Combat.hp() < 100 end