Match healing checks for tree/forest potion, wait for first wrap turn to heal, reduce attack req for potion before Misty, constrain two-hit Cubone redbar allowable health range, skip Rare Candy before Koga at high hp
This commit is contained in:
parent
9aecb5d3f9
commit
1873bc190b
|
@ -913,7 +913,7 @@ strategyFunctions = {
|
||||||
|
|
||||||
grabTreePotion = function()
|
grabTreePotion = function()
|
||||||
if initialize() then
|
if initialize() then
|
||||||
if pokemon.info("squirtle", "hp") > 25 then
|
if pokemon.info("squirtle", "hp") > 15 or pokemon.info("spearow", "level") == 3 then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -1252,7 +1252,8 @@ strategyFunctions = {
|
||||||
if not tempDir then
|
if not tempDir then
|
||||||
tempDir = curr_hp
|
tempDir = curr_hp
|
||||||
end
|
end
|
||||||
if tempDir - curr_hp < 4 and curr_hp < 14 and not opponentDamaged() then
|
local wrapDamage = tempDir - curr_hp
|
||||||
|
if wrapDamage > 0 and wrapDamage < 7 and curr_hp < 14 and not opponentDamaged() then
|
||||||
inventory.use("potion", nil, true)
|
inventory.use("potion", nil, true)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
@ -1579,7 +1580,7 @@ strategyFunctions = {
|
||||||
healAmount = 65
|
healAmount = 65
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if nidoAttack > 54 and nidoSpeed > 51 then -- RISK
|
if nidoAttack > 53 and nidoSpeed > 51 then -- RISK
|
||||||
healAmount = 45
|
healAmount = 45
|
||||||
elseif nidoAttack > 53 and nidoSpeed > 50 then
|
elseif nidoAttack > 53 and nidoSpeed > 50 then
|
||||||
healAmount = 65
|
healAmount = 65
|
||||||
|
@ -1903,7 +1904,7 @@ strategyFunctions = {
|
||||||
forced = "thunderbolt"
|
forced = "thunderbolt"
|
||||||
else
|
else
|
||||||
afterHit = afterHit - clubDmg
|
afterHit = afterHit - clubDmg
|
||||||
if afterHit > -4 and afterHit < red_hp then
|
if afterHit > 1 and afterHit < red_hp then
|
||||||
forced = "thunderbolt"
|
forced = "thunderbolt"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -2314,7 +2315,7 @@ strategyFunctions = {
|
||||||
healTarget = "HypnoConfusion"
|
healTarget = "HypnoConfusion"
|
||||||
useRareCandy = rareCandyCount > 2
|
useRareCandy = rareCandyCount > 2
|
||||||
end
|
end
|
||||||
if useRareCandy then
|
if useRareCandy and curr_hp < combat.healthFor("KogaWeezing") * 0.85 then
|
||||||
if menu.pause() then
|
if menu.pause() then
|
||||||
inventory.use("rare_candy", nil, false)
|
inventory.use("rare_candy", nil, false)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue