Add Vaporeon strats at Viridian Rival

This commit is contained in:
Kyle Coburn 2015-04-21 22:46:46 -07:00
parent c6d014111e
commit cf1edf71ad
1 changed files with 31 additions and 0 deletions

View File

@ -799,6 +799,37 @@ strategyFunctions.fightGiovanni = function()
end end
end end
strategyFunctions.useViridianEther = function()
if Strategies.initialize() then
if not Strategies.vaporeon or not Inventory.contains("ether", "max_ether") then
return true
end
end
return strategyFunctions.ether({chain=true})
end
strategyFunctions.fightViridianRival = function()
if Battle.isActive() then
status.canProgress = true
local xItem1, xItem2
if Strategies.vaporeon then
xItem1 = "x_accuracy"
if Battle.pp("horn_drill") < 3 then
xItem2 = "x_special"
end
else
xItem1 = "x_special"
end
if Strategies.prepare(xItem1, xItem2) then
Battle.automate()
end
elseif status.canProgress then
return true
else
Textbox.handle()
end
end
strategyFunctions.depositPokemon = function() strategyFunctions.depositPokemon = function()
if Memory.value("player", "party_size") == 1 then if Memory.value("player", "party_size") == 1 then
if Menu.close() then if Menu.close() then