day_of_the_moon.txt and support/refactor in NameCard (#3890)

* day_of_the_moon.txt and support/refactor
This commit is contained in:
Northmoc
2023-10-14 05:46:22 -04:00
committed by GitHub
parent 7c303d2fb9
commit 25e89b04a3
45 changed files with 120 additions and 139 deletions

View File

@@ -885,11 +885,11 @@ public class SpellAbilityPickerSimulationTest extends SimulationTest {
// If we have a Pithing Needle, but it's naming something else, that's still fine.
Card pithingNeedle = addCard("Pithing Needle", opponent);
pithingNeedle.setNamedCard("Flooded Strand");
pithingNeedle.addNamedCard("Flooded Strand");
assertPickIsGoblinBombardmentTargetingOpponent.run();
// But if it's naming Gobling Bombardment, then we can't choose that SA.
pithingNeedle.setNamedCard("Goblin Bombardment");
pithingNeedle.addNamedCard("Goblin Bombardment");
game.getAction().checkStateEffects(true);
AssertJUnit.assertNull(picker.chooseSpellAbilityToPlay(null));
}