From b546b99daf2e9cae90271c99a10f92b9776b2665 Mon Sep 17 00:00:00 2001 From: Northmoc Date: Fri, 30 Oct 2020 09:42:07 -0400 Subject: [PATCH] ghost_of_ramirez_depietro.txt and keyword support --- .../main/java/forge/game/card/CardFactoryUtil.java | 10 ++++++++++ .../upcoming/ghost_of_ramirez_depietro.txt | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100755 forge-gui/res/cardsfolder/upcoming/ghost_of_ramirez_depietro.txt diff --git a/forge-game/src/main/java/forge/game/card/CardFactoryUtil.java b/forge-game/src/main/java/forge/game/card/CardFactoryUtil.java index 44fbf4c2899..484d842703d 100644 --- a/forge-game/src/main/java/forge/game/card/CardFactoryUtil.java +++ b/forge-game/src/main/java/forge/game/card/CardFactoryUtil.java @@ -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; diff --git a/forge-gui/res/cardsfolder/upcoming/ghost_of_ramirez_depietro.txt b/forge-gui/res/cardsfolder/upcoming/ghost_of_ramirez_depietro.txt new file mode 100755 index 00000000000..298a1b07fb8 --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/ghost_of_ramirez_depietro.txt @@ -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.)