Prevent sacrificing Squirtle during the Cerulean Rival fight

This commit is contained in:
Kyle Coburn 2015-04-17 18:25:01 -07:00
parent 9cdd9d8c83
commit d40482ddd8
1 changed files with 5 additions and 1 deletions

View File

@ -744,7 +744,11 @@ strategyFunctions.rivalSandAttack = function(data)
if opponent == "pidgeotto" then
local __, turnsToKill = Combat.bestMove()
if turnsToKill == 1 then
sacrifice = Pokemon.getSacrifice("pidgey", "spearow", "paras", "oddish", "squirtle")
if Pokemon.info("nidoking", "level") > 20 then
sacrifice = Pokemon.getSacrifice("pidgey", "spearow", "paras", "oddish", "squirtle")
else
sacrifice = Pokemon.getSacrifice("pidgey", "spearow", "paras")
end
end
elseif opponent == "raticate" then
sacrifice = Pokemon.getSacrifice("pidgey", "spearow", "oddish")