Skip to content

Conversation

@matoro
Copy link
Contributor

@matoro matoro commented Jan 23, 2026

It should not be possible to play a land on the back of a nonmodal (transforming) double-faced card from anywhere.

@matoro matoro force-pushed the ojertaq branch 2 times, most recently from 26801f2 to e73c0af Compare January 23, 2026 09:07
@matoro matoro marked this pull request as ready for review January 23, 2026 09:29
Copy link
Contributor

@Jmlundeen Jmlundeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can work unless someone else sees some eye cases this might miss or a better spot to prevent the ability.


// lands on the back of transforming double-faced cards should not be playable
if (this instanceof TransformingDoubleFacedCardHalf && ((DoubleFacedCardHalf)this).isBackSide()) {
all.removeIf(ability -> ability instanceof PlayLandAbility);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CardImpl looks a bad place for fix, it's about TDFC, not global cards. See isIgnoreDefaultAbility and DoubleFacedCard. It already has tools to ignore land abilities. So something broken it on TDFC rework? Need research.

@Jmlundeen also lands problems must be added to TDFC issue tracker in #14099

public void testModalAllowed() {
addCard(Zone.HAND, playerA, "Sink into Stupor");
checkPlayableAbility("Should be able to play land", 1, PhaseStep.PRECOMBAT_MAIN, playerA, "Play Soporific Springs", true);
execute();
Copy link
Member

@JayDi85 JayDi85 Jan 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Must use good tests style with setStrictMode and setStopAt like

setStrictChooseMode(true);
setStopAt(1, PhaseStep.END_TURN);
execute();

It should not be possible to play a land on the back of a nonmodal
(transforming) double-faced card from anywhere.
@matoro matoro marked this pull request as draft January 25, 2026 01:12
@matoro matoro marked this pull request as ready for review January 25, 2026 04:10
@matoro
Copy link
Contributor Author

matoro commented Jan 25, 2026

I redid this in the specific location as requested. I special-cased this in the verifier since it is now visible to it. Let me know if that is too specific.

@matoro matoro requested review from Grath, JayDi85 and Jmlundeen January 25, 2026 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants