Prevent sacrificing Squirtle during the Cerulean Rival fight
This commit is contained in:
parent
9cdd9d8c83
commit
d40482ddd8
|
@ -744,7 +744,11 @@ strategyFunctions.rivalSandAttack = function(data)
|
||||||
if opponent == "pidgeotto" then
|
if opponent == "pidgeotto" then
|
||||||
local __, turnsToKill = Combat.bestMove()
|
local __, turnsToKill = Combat.bestMove()
|
||||||
if turnsToKill == 1 then
|
if turnsToKill == 1 then
|
||||||
|
if Pokemon.info("nidoking", "level") > 20 then
|
||||||
sacrifice = Pokemon.getSacrifice("pidgey", "spearow", "paras", "oddish", "squirtle")
|
sacrifice = Pokemon.getSacrifice("pidgey", "spearow", "paras", "oddish", "squirtle")
|
||||||
|
else
|
||||||
|
sacrifice = Pokemon.getSacrifice("pidgey", "spearow", "paras")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
elseif opponent == "raticate" then
|
elseif opponent == "raticate" then
|
||||||
sacrifice = Pokemon.getSacrifice("pidgey", "spearow", "oddish")
|
sacrifice = Pokemon.getSacrifice("pidgey", "spearow", "oddish")
|
||||||
|
|
Loading…
Reference in New Issue