Fix depositing flier at E4 when we want to deposit all pokemon

This commit is contained in:
Kyle Coburn 2015-04-05 23:37:04 -07:00
parent f6f6560120
commit 77b4fb1e1a
1 changed files with 2 additions and 1 deletions

View File

@ -2747,7 +2747,8 @@ strategyFunctions = {
input.press("A")
elseif menuColumn == 5 then
local depositIndex = 1
if pokemon.indexOf("pidgey", "spearow") == 1 then
local depositAllExtras = toSize == 1
if not depositAllExtras and pokemon.indexOf("pidgey", "spearow") == 1 then
depositIndex = 2
end
menu.select(depositIndex)