From f356b6b2464910be5d354a74c8f146007ab2a11c Mon Sep 17 00:00:00 2001 From: Nils Enevoldsen Date: Sun, 19 Sep 2021 12:51:54 -0400 Subject: [PATCH] Don't rotate Mystery Booster playtest split cards Fixes #61 --- resources/ext.scryfallLinks.tooltip.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/ext.scryfallLinks.tooltip.js b/resources/ext.scryfallLinks.tooltip.js index edd96d0..4c2df5b 100644 --- a/resources/ext.scryfallLinks.tooltip.js +++ b/resources/ext.scryfallLinks.tooltip.js @@ -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