-
Notifications
You must be signed in to change notification settings - Fork 859
Prevent playing lands on NDFC backs #14305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
26801f2 to
e73c0af
Compare
Jmlundeen
left a comment
There was a problem hiding this 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); |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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.
|
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. |
It should not be possible to play a land on the back of a nonmodal (transforming) double-faced card from anywhere.