From c61ca4433dd390ef6d22e48a4509aebe74562b2e Mon Sep 17 00:00:00 2001 From: Kyle Coburn Date: Thu, 30 Apr 2015 12:55:38 -0700 Subject: [PATCH] Report Horn Attack Disable vs Grimer --- ai/strategies.lua | 16 ++++++++++++++++ data/red/paths.lua | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/ai/strategies.lua b/ai/strategies.lua index 903cf09..3c886d8 100644 --- a/ai/strategies.lua +++ b/ai/strategies.lua @@ -1187,6 +1187,22 @@ Strategies.functions = { end end, + fightGrimer = function() + if Strategies.trainerBattle() then + if Combat.isDisabled("horn_attack") and Strategies.initialize("disabled") then + local message = Utils.random { + "Last for 0 turns pretty please?", + "I guess it's time to tackle everything.", + "How could this... happen to me?", + } + Bridge.chat("WutFace Grimer just disabled Horn Attack. " + message) + end + Battle.automate() + elseif status.foughtTrainer then + return true + end + end, + helix = function() if Battle.handleWild() then if Inventory.contains("helix_fossil") then diff --git a/data/red/paths.lua b/data/red/paths.lua index 5eda84d..5e26a19 100644 --- a/data/red/paths.lua +++ b/data/red/paths.lua @@ -83,7 +83,7 @@ local Paths = { -- Mt. Moon B2 {60, {5,5}, {5,17}, {21,17}}, -- Mt. Moon B3 - {61, {21,17}, {22,17}, {s="evolveNidoking",early=true,poke="paras"}, {23,17}, {23,14}, {27,14}, {27,16}, {33,16}, {33,14}, {36,14}, {36,24}, {32, 24}, {32,31}, {10,31}, {10,18}, {s="potion",hp=11,yolo=6,chain=true}, {s="evolveNidoking",close=true}, {10,17}, {12,17}, {c="moon2Exp"}, {12,9}, {s="potion",hp=7}, {s="talk",dir="Up"}, {13,9}, {c="moon3Exp"}, {13,7}, {s="confirm",dir="Up"}, {13,5}, {12,5}, {12,4}, {3,4}, {3,7}, {5,7}}, + {61, {21,17}, {22,17}, {s="evolveNidoking",early=true,poke="paras"}, {23,17}, {23,14}, {27,14}, {27,16}, {33,16}, {33,14}, {36,14}, {36,24}, {32, 24}, {32,31}, {10,31}, {10,18}, {s="potion",hp=11,yolo=6,chain=true}, {s="evolveNidoking",close=true}, {10,17}, {12,17}, {c="moon2Exp"}, {12,9}, {s="potion",hp=7}, {s="talk",dir="Up"}, {s="fightGrimer"}, {13,9}, {c="moon3Exp"}, {13,7}, {s="confirm",dir="Up"}, {13,5}, {12,5}, {12,4}, {3,4}, {3,7}, {5,7}}, -- Mt. Moon escape {60, {23,3}, {27,3}},