Added reset for time during Nidoran catch attempts

This commit is contained in:
Kyle Coburn 2015-04-23 18:24:43 -07:00
parent 7079097ceb
commit d176d5b10b
1 changed files with 14 additions and 0 deletions

View File

@ -391,6 +391,20 @@ strategyFunctions.catchNidoran = function()
Input.cancel()
end
else
if Memory.value("battle", "menu") == 94 then
local resetLimit = Strategies.getTimeRequirement("nidoran")
local catchTarget
if catchableNidoran or opponent == "spearow" then
resetLimit = resetLimit + 0.33
catchTarget = Utils.capitalize(opponent)
else
resetLimit = resetLimit - 0.15
catchTarget = "Nidoran"
end
if Strategies.resetTime(resetLimit, "catch "..catchTarget) then
return true
end
end
Battle.handle()
end
else