allow Clue Sac cost to use more generic formatting (match Oracle)

This commit is contained in:
Northmoc
2021-09-19 05:42:46 -04:00
parent fceb443618
commit 0935391569
2 changed files with 3 additions and 2 deletions

View File

@@ -81,7 +81,8 @@ public class CostSacrifice extends CostPartWithList {
}
if (payCostFromSource()) {
sb.append(getType());
sb.append(getTypeDescription() == null || !getTypeDescription().startsWith("this")
? getType() : getTypeDescription());
} else if (getAmount().equals("X")) {
String typeDesc = getType().toLowerCase().replace(";","s and/or ");
sb.append("any number of ").append(typeDesc).append("s");

View File

@@ -1,5 +1,5 @@
Name:Clue
ManaCost:no cost
Types:Artifact Clue
A:AB$ Draw | Cost$ 2 Sac<1/CARDNAME> | NumCards$ 1 | SpellDescription$ Draw a card.
A:AB$ Draw | Cost$ 2 Sac<1/CARDNAME/this artifact> | NumCards$ 1 | SpellDescription$ Draw a card.
Oracle:{2}, Sacrifice this artifact: Draw a card.