a little more

This commit is contained in:
bryanthaboi
2026-08-21 21:33:42 -04:00
parent c23f82efdd
commit e13271fc85
2 changed files with 52 additions and 14 deletions
+20
View File
@@ -2871,6 +2871,26 @@ end)()
b:takeEvents()
check("using an item cancels the Bide", b:forcedMove(player), nil)
check("and drops the bank", b:volatile(player).bideStored, nil)
-- CantMove (engine/battle/effect_commands.asm:344-353) clears SUBSTATUS_BIDE
-- on every arm that spends the turn, so a flinch ends the Bide.
b:useMove(player, wild, "BIDE")
b:takeEvents()
check("locked once more", b:forcedMove(player), "BIDE")
b:volatile(player).flinched = true
check("a flinch spends the turn", b:canAct(player, "BIDE"), false)
b:takeEvents()
check("and CantMove ends the Bide", b:forcedMove(player), nil)
check("bank dropped with it", b:volatile(player).bideStored, nil)
-- .not_linked reads SUBSTATUS_ENCORED before CheckEnemyLockedIn
-- (engine/battle/core.asm:5524-5533), so an encored foe obeys the Encore.
es.bideTurns, es.bideMove, es.bideStored = 2, "BIDE", 0
es.encore, es.encoreTurns = "TACKLE", 3
check("Encore outranks the foe's Bide lock", b:enemyMove(), "TACKLE")
es.encore, es.encoreTurns = nil, nil
check("without it the Bide lock holds", b:enemyMove(), "BIDE")
es.bideTurns, es.bideMove, es.bideStored = nil, nil, nil
end)()
-- --------------------------------------------------- Snore and Sleep Talk