Laboratory Drudge: end-step ability only triggers if the graveyard condition is already met (it should always trigger)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
The trigger is defined on line 5 of forge-gui/res/cardsfolder/l/laboratory_drudge.txt, where the T:Mode$ Phase line carries CheckSVar$ NumCast. Start by reading how the phase trigger's CheckSVar is evaluated, then move the cast-from-graveyard check onto the draw effect as the issue suggests. Done when the included forge.ai test sees the ability on the stack at end of turn and the card still draws only when the condition holds.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
Laboratory Drudge's ability is not put on the stack at the beginning of an end step unless its controller has already cast a spell from a graveyard or activated an ability of a card in a graveyard that turn. The "if" in its text is not an intervening-if, so the ability should trigger every end step and check the condition only on resolution. Because Forge never puts it on the stack, a player cannot respond to it (for example with a flashback spell) to make it draw.
To Reproduce
- Have Laboratory Drudge on the battlefield; cast nothing from a graveyard this turn.
- Go to the end step.
- No Laboratory Drudge ability is put on the stack.
Expected behavior
Oracle: "At the beginning of each end step, draw a card if you've cast a spell from a graveyard or activated an ability of a card in a graveyard this turn."
- CR 603.4: the intervening-if rule "only applies to an 'if' that immediately follows a trigger condition." Here the "if" follows the effect.
- Ruling (2020-11-10): "Laboratory Drudge's ability will trigger at the beginning of each end step whether you've cast a spell from a graveyard or activated an ability of a card in a graveyard that turn or not. You can respond to that ability and do one (or both) of the things to draw a card."
Additional context
Master 2a3d3fd774, forge-gui/res/cardsfolder/l/laboratory_drudge.txt line 5 puts CheckSVar$ NumCast on the T:Mode$ Phase line, which Trigger treats as a trigger requirement. A likely fix is to move the check to the draw, e.g. SVar:TrigDraw:DB$ Draw | Defined$ You | NumCards$ 1 | ConditionCheckSVar$ NumCast | ConditionSVarCompare$ GE1, and drop CheckSVar$ NumCast from the trigger.
Failing test (forge-gui-desktop, forge.ai, fails on master; a control with Khabal Ghoul's unconditional end-step trigger passes with the same loop):
@Test
public void laboratoryDrudgeTriggersEveryEndStep() {
Game game = initAndCreateGame();
Player p = game.getPlayers().get(1);
fillLibrary(p, 10);
fillLibrary(game.getPlayers().get(0), 10);
Card drudge = addCard("Laboratory Drudge", p);
game.getAction().checkStateEffects(true);
boolean seen = false;
int guard = 0;
while (!game.isGameOver() && !game.getPhaseHandler().is(PhaseType.CLEANUP) && guard++ < 500) {
game.getPhaseHandler().mainLoopStep();
if (game.getPhaseHandler().is(PhaseType.END_OF_TURN)) {
for (SpellAbilityStackInstance si : game.getStack()) {
if (si.getSourceCard() != null && si.getSourceCard().getName().equals(drudge.getName())) {
seen = true;
}
}
}
}
AssertJUnit.assertTrue("Laboratory Drudge's end-step ability should be put on the stack", seen);
}
Found with the help of an AI coding agent (Claude Code); reviewed before posting.
- 主要言語
- Java
- スター
- 2.7k
- フォーク
- 1.1k
- 平均マージ
- 20時間 38分
- マージ済み PR(30日)
- 323
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Card-Forge/forge のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
Card-Forge/forge#13128 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Card-Forge/forge#13092 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
Card-Forge/forge#12877 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Card-Forge/forge#12710 ·
メンテナーはふだん 1 日以内に返信
-
Shandalar "The Drunken Plea" quest completes prematurely再び着手できるかも @Simisays が 35 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Card-Forge/forge#12306 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
Card-Forge/forge の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
yegor256/takes#1868 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
area: context help wanted type: decision
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
JoaccoG/spoticraft#6 ·
-
CI: LFC/ANTLR caches still use the old lfc/ paths, so the ANTLR jar is downloaded on every run対応中かも @NicoBiernat が今日担当しました。 オープンbug CI
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
lf-lang/reactor-uc#443 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ChiselsAndBits/Chisels-and-Bits#1397 ·