mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
allow Clue Sac cost to use more generic formatting (match Oracle)
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user