From 6a4824084e13cea2f58cf9c16ced47246f09ea1e Mon Sep 17 00:00:00 2001 From: Kyle Coburn Date: Fri, 3 Apr 2015 22:15:38 -0700 Subject: [PATCH] Deposit all except flier before Lorelei via FioraAeterna --- ai/strategies.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ai/strategies.lua b/ai/strategies.lua index 7d5fe55..3b681b6 100644 --- a/ai/strategies.lua +++ b/ai/strategies.lua @@ -2683,8 +2683,15 @@ strategyFunctions = { else local pc = memory.value("menu", "size") if memory.value("battle", "menu") ~= 95 and (pc == 2 or pc == 4) then - if menu.getCol() == 10 then + local menuColumn = menu.getCol() + if menuColumn == 10 then input.press("A") + elseif menuColumn == 5 then + local depositIndex = 1 + if pokemon.indexOf("pidgey", "spearow") == 1 then + depositIndex = 2 + end + menu.select(depositIndex) else menu.select(1) end