Enable option to skip mom heal under ideal conditions
This commit is contained in:
parent
dbf62847c0
commit
0c11edd40a
|
@ -1053,10 +1053,17 @@ end
|
|||
|
||||
strategyFunctions.momHeal = function()
|
||||
if Strategies.initialize() then
|
||||
-- status.mom = not Strategies.canHealFor(Control.yolo and 70 or 125, true) --RISK
|
||||
status.mom = true
|
||||
local ppItemsRequired = Strategies.vaporeon and 3 or 2
|
||||
status.momHeal = Inventory.ppRestoreCount() < ppItemsRequired or Combat.hp() + 50 < (Control.yolo and "BlaineNinetails" or 96)
|
||||
local message
|
||||
if status.momHeal then
|
||||
message = "healing with mom before Blaine."
|
||||
else
|
||||
message = "elixering to skip healing with mom."
|
||||
end
|
||||
Bridge.chat("is "..message)
|
||||
end
|
||||
needsHeal = status.mom and Pokemon.pp(0, "earthquake") < 10
|
||||
needsHeal = status.momHeal and Pokemon.pp(0, "earthquake") < 10
|
||||
|
||||
local currentMap = Memory.value("game", "map")
|
||||
local px, py = Player.position()
|
||||
|
|
|
@ -271,6 +271,30 @@ local Opponents = {
|
|||
|
||||
-- YELLOW
|
||||
|
||||
BlaineNinetails = {
|
||||
type1 = "fire",
|
||||
type2 = "fire",
|
||||
def = 84,
|
||||
id = 83,
|
||||
spec = 108,
|
||||
hp = 135,
|
||||
speed = 108,
|
||||
level = 48,
|
||||
att = 86,
|
||||
|
||||
moves = {
|
||||
{
|
||||
accuracy = 100,
|
||||
name = "Flamethrower",
|
||||
power = 95,
|
||||
id = 53,
|
||||
special = true,
|
||||
max_pp = 15,
|
||||
move_type = "fire",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
GarySandslash = {
|
||||
type1 = "ground",
|
||||
type2 = "ground",
|
||||
|
|
Loading…
Reference in New Issue