Allow minimum Nido stats when not resetting for time

This commit is contained in:
Kyle Coburn 2015-04-13 11:21:03 -07:00
parent e3782505bc
commit f7c3466b83
1 changed files with 9 additions and 4 deletions

View File

@ -568,10 +568,15 @@ strategyFunctions.fightBrock = function()
rating = 0,
}
p(Pokemon.getDVs("nidoran"))
local resets = att < 15 or spd < 14 or scl < 12 or (att == 15 and spd == 14)
local nStatus = "Att: "..att..", Def: "..def..", Speed: "..spd..", Special: "..scl
local resetsForStats = att < 15 or spd < 14 or scl < 12
if not resetsForStats and not RESET_FOR_TIME then
resetsForStats = att == 15 and spd == 14
end
local nidoranStatus = "Att: "..att..", Def: "..def..", Speed: "..spd..", Special: "..scl
if resets then
return Strategies.reset("Bad Nidoran - "..nStatus)
return Strategies.reset("Bad Nidoran - "..nidoranStatus)
end
status.tries = 9001
@ -610,7 +615,7 @@ strategyFunctions.fightBrock = function()
superlative = " min stat"
exclaim = "."
end
Bridge.chat("beat Brock with a"..superlative.." Nidoran"..exclaim.." "..nStatus..", caught at level "..(stats.nidoran.level4 and "4" or "3")..".")
Bridge.chat("beat Brock with a"..superlative.." Nidoran"..exclaim.." "..nidoranStatus..", caught at level "..(stats.nidoran.level4 and "4" or "3")..".")
else
status.tries = status.tries + 1
end