👁️
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

exclude silver border for commander

+11
+1
src/lib/deck-validation/presets.ts
··· 20 20 "deckSizeExact", 21 21 "commanderRequired", 22 22 "commanderPartner", 23 + "illegalCardType", 23 24 ] as const satisfies readonly RuleId[]; 24 25 25 26 /**
+5
src/lib/deck-validation/rules/commander.ts
··· 93 93 } 94 94 95 95 export function isValidCommanderType(card: Card): boolean { 96 + // Silver-bordered and acorn cards can't be commanders in sanctioned play 97 + if (card.border_color === "silver" || card.security_stamp === "acorn") { 98 + return false; 99 + } 100 + 96 101 const frontTypeLine = getFrontFaceTypeLine(card).toLowerCase(); 97 102 const oracleText = getOracleText(card).toLowerCase(); 98 103
+5
src/lib/deck-validation/rules/rarity.ts
··· 87 87 /** 88 88 * Check if this printing can be a Pauper Commander (PDH). 89 89 * Must be creature/vehicle/spacecraft (with P/T for spacecraft) and uncommon in paper/MTGO. 90 + * Silver-bordered and acorn cards are excluded. 90 91 * 91 92 * Note: Full validation checks ALL printings of a card. This predicate 92 93 * only checks the current printing, suitable for search filtering. 93 94 */ 94 95 export function canBePauperCommander(card: Card): boolean { 96 + // Silver-bordered and acorn cards can't be commanders 97 + if (card.border_color === "silver" || card.security_stamp === "acorn") { 98 + return false; 99 + } 95 100 return hasCommanderCreatureType(card) && isUncommonInPaperOrMtgo(card); 96 101 }