fix!(lua.endpoints): allow rearrange of jokers/consumables during ROUND_EVAL and BLIND_SELECT
@S1M0N38 がすでに取り組んでいます。
2026年7月1日 から。
評価
この issue はまだ評価されていません。
説明
The rearrange endpoint rejects valid reordering of jokers and consumables during ROUND_EVAL and BLIND_SELECT that the game permits. Verified against vendors/lovely/dump/.
Bug
src/lua/endpoints/rearrange.lua requires_state omits ROUND_EVAL and BLIND_SELECT, so reordering jokers or consumables mid-eval or during blind selection returns INVALID_STATE.
The game allows it: CardArea:set_ranks() (cardarea.lua:245 in the dump) sets states.drag.can = true based purely on area type. Both G.jokers and G.consumeables are created with type = 'joker' (game.lua:2291/2297), so they fall into the else branch with no state guard.
Only jokers and consumables are affected; hand cards are not (no hand is shown in these states, and the hand branch is already correctly restricted to SELECTING_HAND/SMODS_BOOSTER_OPENED).
Fix
Add G.STATES.ROUND_EVAL and G.STATES.BLIND_SELECT to requires_state and to the completion-detection state lists for the jokers/consumables branches (~L215, ~L221). Leave the hand branch unchanged.
Sibling of #202, #203–#206.
- 主要言語
- Python
- スター
- 80
- フォーク
- 23
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coder/balatrobot のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
coder/balatrobot#244 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
coder/balatrobot#243 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
coder/balatrobot#235 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
coder/balatrobot#234 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
coder/balatrobot#233 ·
coder/balatrobot の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
jejjohnson/gaussx#752 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
521xueweihan/HelloGitHub#4270 ·
-
enhancement owner: den-haag
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 6 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ok-oldking/ok-wuthering-waves#1828 ·
メンテナーはふだん 1 日以内に返信
-
lesson-submission pending-review
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
Ikalus1988/MisakaNet#4512 ·
メンテナーはふだん 1 日以内に返信