From 00124cd832cff7811726ca2f72ae443ca43696b2 Mon Sep 17 00:00:00 2001 From: Kyle Coburn Date: Fri, 10 Apr 2015 22:01:56 -0700 Subject: [PATCH] Update yellow pokeball requirements, "report" Mt. Moon Zubat findings --- ai/control.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ai/control.lua b/ai/control.lua index 2a4c431..075f7cb 100644 --- a/ai/control.lua +++ b/ai/control.lua @@ -205,6 +205,9 @@ function Control.canCatch(partySize) local pokeballs = Inventory.count("pokeball") local minimumCount = (yellow and 3 or 4) - partySize if pokeballs < minimumCount then + if yellow and Pokemon.inParty("nidoran") and Pokemon.inParty("pidgey", "spearow") then + return false + end Strategies.reset("Not enough PokeBalls", pokeballs) return false end @@ -310,6 +313,9 @@ function Control.encounter(battleState) Paint.wildEncounters(encounters) Bridge.encounter() if Control.moonEncounters then + if Pokemon.isOpponent("zubat") then + Bridge.chat("NightBat") + end Control.moonEncounters = Control.moonEncounters + 1 end end