Add strategy to attempt double center skipping

This commit is contained in:
Kyle Coburn 2015-05-17 21:01:05 -07:00
parent b959505426
commit 6417bf8b8c
1 changed files with 24 additions and 0 deletions

View File

@ -493,6 +493,30 @@ strategyFunctions.fightBrock = function()
end
end
strategyFunctions.conserveHornAttacks = function()
local riskDamageRanges = false
if Pokemon.inParty("pikachu") then
local hornAttacks = Pokemon.pp(0, "horn_attack")
local ppRequired = 130
local potionsRequired = 3
if stats.nidoran.attack == 16 then
ppRequired = ppRequired - 1
end
if stats.nidoran.speed == 15 then
potionsRequired = potionsRequired - 1
end
if Inventory.count("potion") >= potionsRequired and hornAttacks >= ppRequired then
if not STREAMING_MODE then
Bridge.chat("is risking some damage ranges to attempt to double center skip...")
end
riskDamageRanges = true
end
end
Combat.factorPP(true, riskDamageRanges)
return true
end
strategyFunctions.reload = function(data)
local message = "is reloading the "
if data.area == "route3" then