Merge branch 'ramirez' into 'master'

CMR: Ghost of Ramirez DePietro and keyword support

See merge request core-developers/forge!3312
This commit is contained in:
Michael Kamensky
2020-11-01 04:36:06 +00:00
2 changed files with 21 additions and 0 deletions

View File

@@ -4763,6 +4763,16 @@ public class CardFactoryUtil {
String opName = Expressions.operatorName(part.substring(kwLength, kwLength + 2));
String operand = part.substring(kwLength + 2);
postponedAdjectives.add(Pair.of(true, "power" + opName + operand));
} else if (part.startsWith("toughness")) {
int kwLength = 9;
String operand = part.substring(kwLength + 2);
String opName = "";
if (part.startsWith("toughnessGE")) {
opName = " or greater";
} else {
opName = "update CardFactoryUtil line 4773";
}
postponedAdjectives.add(Pair.of(true, "toughness " + operand + opName));
} else if (CardType.isACreatureType(part)) {
if (creatures != null && CardType.isACreatureType(creatures)) { // e.g. Kor Castigator
creatures = StringUtils.capitalize(Lang.getPlural(part)) + creatures;

View File

@@ -0,0 +1,11 @@
Name:Ghost of Ramirez DePietro
ManaCost:2 U
Types:Legendary Creature Pirate Spirit
PT:2/3
K:CantBeBlockedBy Creature.toughnessGE3
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Player | CombatDamage$ True | Execute$ TrigChangeZone | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, choose up to one target card in any graveyard that has been discarded or put there from a library this turn. Put that card into its owner's hand.
SVar:TrigChangeZone:DB$ ChangeZone | TargetMin$ 0 | TargetMax$ 1 | Origin$ Graveyard | Destination$ Hand | ValidTgts$ Card.DiscardedThisTurn,Card.ThisTurnEntered_Graveyard_from_Library | TgtPrompt$ Choose up to one target card in any graveyard that has been discarded or put there from a library this turn
K:Partner
DeckHas:Ability$Graveyard
DeckHints:Ability$Mill
Oracle:Ghost of Ramirez DePietro can't be blocked by creatures with toughness 3 or greater.\nWhenever Ghost of Ramirez DePietro deals combat damage to a player, choose up to one target card in any graveyard that has been discarded or put there from a library this turn. Put that card into its owner's hand.\nPartner (You can have two commanders if both have partner.)