From d40482ddd89cc68542fa202e473cb906ef1c15e1 Mon Sep 17 00:00:00 2001 From: Kyle Coburn Date: Fri, 17 Apr 2015 18:25:01 -0700 Subject: [PATCH] Prevent sacrificing Squirtle during the Cerulean Rival fight --- ai/red/strategies.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ai/red/strategies.lua b/ai/red/strategies.lua index 518c89b..8acb6f3 100644 --- a/ai/red/strategies.lua +++ b/ai/red/strategies.lua @@ -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")