diff --git a/ai/red/strategies.lua b/ai/red/strategies.lua index 7d7304b..b4486c5 100644 --- a/ai/red/strategies.lua +++ b/ai/red/strategies.lua @@ -494,8 +494,7 @@ strategyFunctions.grabTreePotion = function() local current = Utils.igt() local limit = Strategies.getTimeRequirement("old_man") * 60 local diff = math.floor((limit - current) / 5) - p("grab", diff) - if Pokemon.info("squirtle", "hp") > 13 + diff then + if Pokemon.info("squirtle", "hp") > 14 + diff then return true end end diff --git a/main.lua b/main.lua index 25cd01f..98afd20 100644 --- a/main.lua +++ b/main.lua @@ -9,7 +9,7 @@ local PAINT_ON = true -- Display contextual information while the bot runs -- START CODE (hard hats on) -VERSION = "1.5.1" +VERSION = "1.5.2" local START_WAIT = 99