Skip to content
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

Mystery Booster playtest split cards should not be rotated #61

Closed
NilsEnevoldsen opened this issue Aug 26, 2021 · 0 comments
Closed

Mystery Booster playtest split cards should not be rotated #61

NilsEnevoldsen opened this issue Aug 26, 2021 · 0 comments

Comments

@NilsEnevoldsen
Copy link
Owner

Mystery Booster playtest split cards should be vertical orientation. Need to add an exception here.

if ( data.layout === 'transform' || data.layout === 'modal_dfc' || data.layout === 'double_faced_token' ) {
if ( isSecondface ) {
fastBranchIsInvalid = true;
tip.reference.href = permapageUri.href + '&back';
}
} else if ( data.layout === 'split' ) {
// eslint-disable-next-line no-restricted-properties
if ( data.card_faces[ 1 ].oracle_text.startsWith( 'Aftermath' ) ) {
if ( isSecondface ) {
img.classList.add( 'ext-scryfall-rotate-90ccw' );
// We add rotationClass to the reference attributes to cache it
tip.reference.dataset.rotationClass = 'ext-scryfall-rotate-90ccw';
}
} else {
img.classList.add( 'ext-scryfall-rotate-90cw' );
tip.reference.dataset.rotationClass = 'ext-scryfall-rotate-90cw';
}
} else if ( data.layout === 'flip' ) {
if ( isSecondface ) {
img.classList.add( 'ext-scryfall-rotate-180' );
tip.reference.dataset.rotationClass = 'ext-scryfall-rotate-180';
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant