Skip to content

Commit

Permalink
Don't rotate Mystery Booster playtest split cards
Browse files Browse the repository at this point in the history
Fixes #61
  • Loading branch information
NilsEnevoldsen committed Sep 19, 2021
1 parent 591110c commit f356b6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/ext.scryfallLinks.tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
tip.reference.href = permapageUri.href + '&back';
}
} else if ( data.layout === 'split' ) {
if ( data.card_faces[ 1 ].oracle_text.startsWith( 'Aftermath' ) ) {
if ( data.set.match( /cmb\d/ ) ) {
// Do nothing; Mystery Booster playtest split cards are vertical orientation
} else 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
Expand Down

0 comments on commit f356b6b

Please sign in to comment.