Merge pull request #1825 from Northmoc/bro_crown

BRO: Transmogrant's Crown and parsing tweaks
This commit is contained in:
Anthony Calosa
2022-11-08 19:25:09 +08:00
committed by GitHub
3 changed files with 10 additions and 2 deletions

View File

@@ -2886,7 +2886,7 @@ public class CardFactoryUtil {
abilityStr.append(" ").append(vstr);
}
Cost cost = new Cost(equipCost, true);
if (!cost.isOnlyManaCost() || altCost) { //Something other than a mana cost
if (!cost.isOnlyManaCost() || (altCost && extra.contains("<"))) { //Something other than a mana cost
abilityStr.append("");
} else {
abilityStr.append(" ");

View File

@@ -882,7 +882,7 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
sb.append(payCosts.toString());
sb.append(" or ").append(altOnlyMana ? alternateCost.toString() :
StringUtils.uncapitalize(alternateCost.toString()));
sb.append(isEquip() ? "." : "");
sb.append(isEquip() && !altOnlyMana ? "." : "");
} else {
sb.append(payCosts.toString());
}

View File

@@ -0,0 +1,8 @@
Name:Transmogrant's Crown
ManaCost:2
Types:Artifact Equipment
S:Mode$ Continuous | Affected$ Creature.EquippedBy | AddPower$ 2 | Description$ Equipped creature gets +2/+0.
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.EquippedBy | Execute$ TrigDraw | TriggerDescription$ Whenever equipped creature dies, draw a card.
SVar:TrigDraw:DB$ Draw
K:Equip:2:::AlternateCost$ B
Oracle:Equipped creature gets +2/+0.\nWhenever equipped creature dies, draw a card.\nEquip {2} or {B}