Only sacrifice once at Misty
This commit is contained in:
parent
b50333702e
commit
35e4941a8d
|
@ -996,15 +996,14 @@ strategyFunctions.fightMisty = function()
|
||||||
end
|
end
|
||||||
local forced
|
local forced
|
||||||
if Battle.opponentAlive() and Combat.isConfused() then
|
if Battle.opponentAlive() and Combat.isConfused() then
|
||||||
local sacrifice
|
if not status.sacrifice and not Control.yolo and stats.nidoran.speedDV >= 11 then
|
||||||
if not Control.yolo and stats.nidoran.speedDV >= 11 then
|
status.sacrifice = Pokemon.getSacrifice("pidgey", "spearow", "squirtle", "paras")
|
||||||
sacrifice = Pokemon.getSacrifice("pidgey", "spearow", "squirtle", "paras")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if Menu.onBattleSelect() then
|
if Menu.onBattleSelect() then
|
||||||
if Strategies.initialize("sacrificed") then
|
if Strategies.initialize("sacrificed") then
|
||||||
local swapMessage = " Thrash didn't finish the kill :( "
|
local swapMessage = " Thrash didn't finish the kill :( "
|
||||||
if sacrifice then
|
if status.sacrifice then
|
||||||
swapMessage = swapMessage.."Swapping out to cure Confusion."
|
swapMessage = swapMessage.."Swapping out to cure Confusion."
|
||||||
elseif Control.yolo then
|
elseif Control.yolo then
|
||||||
swapMessage = swapMessage.."Attempting to hit through Confusion to save time."
|
swapMessage = swapMessage.."Attempting to hit through Confusion to save time."
|
||||||
|
@ -1014,7 +1013,7 @@ strategyFunctions.fightMisty = function()
|
||||||
Bridge.chat(swapMessage)
|
Bridge.chat(swapMessage)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if sacrifice and Battle.sacrifice(sacrifice) then
|
if status.sacrifice and Battle.sacrifice(status.sacrifice) then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue