From 7b1fc210fa10ef4c6a249b46501af73cde781ba0 Mon Sep 17 00:00:00 2001 From: Sloth Date: Sun, 20 Nov 2011 12:59:11 +0000 Subject: [PATCH] - Added the optional "ForgetOtherRemembered" parameter to AF Dig. - Fixed Cerebral Eruption. --- res/cardsfolder/c/cerebral_eruption.txt | 2 +- .../java/forge/card/abilityfactory/AbilityFactoryReveal.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/res/cardsfolder/c/cerebral_eruption.txt b/res/cardsfolder/c/cerebral_eruption.txt index 7f1a00155c7..d2ec28e7799 100644 --- a/res/cardsfolder/c/cerebral_eruption.txt +++ b/res/cardsfolder/c/cerebral_eruption.txt @@ -2,7 +2,7 @@ Name:Cerebral Eruption ManaCost:2 R R Types:Sorcery Text:no text -A:SP$ Dig | Cost$ 2 R R | ValidTgts$ Opponent | TgtPrompt$ Select target opponent | DigNum$ 1 | Reveal$ True | ChangeNum$ All | ChangeValid$ Card.YouDontCtrl | DestinationZone$ Library | RememberChanged$ True | SubAbility$ DBDamage | SpellDescription$ Target opponent reveals the top card of his or her library. Cerebral Eruption deals damage equal to the revealed card's converted mana cost to that player and each creature he or she controls. If a land card is revealed this way, return Cerebral Eruption to its owner's hand. +A:SP$ Dig | Cost$ 2 R R | ValidTgts$ Opponent | TgtPrompt$ Select target opponent | DigNum$ 1 | Reveal$ True | ChangeNum$ All | ChangeValid$ Card.YouDontCtrl | DestinationZone$ Library | LibraryPosition$ 0 | RememberChanged$ True | ForgetOtherRemembered$ True | SubAbility$ DBDamage | SpellDescription$ Target opponent reveals the top card of his or her library. Cerebral Eruption deals damage equal to the revealed card's converted mana cost to that player and each creature he or she controls. If a land card is revealed this way, return Cerebral Eruption to its owner's hand. SVar:DBDamage:DB$ DamageAll | ValidCards$ Creature.YouDontCtrl | ValidPlayers$ Opponent | NumDmg$ X | SubAbility$ DBReturn SVar:DBReturn:DB$ ChangeZone | Defined$ Self | Origin$ Stack | Destination$ Hand | ConditionDefined$ Remembered | ConditionPresent$ Land | ConditionCompare$ EQ1 SVar:X:Remembered$CardManaCost diff --git a/src/main/java/forge/card/abilityfactory/AbilityFactoryReveal.java b/src/main/java/forge/card/abilityfactory/AbilityFactoryReveal.java index b9c1e92af7f..798cd8c23cc 100644 --- a/src/main/java/forge/card/abilityfactory/AbilityFactoryReveal.java +++ b/src/main/java/forge/card/abilityfactory/AbilityFactoryReveal.java @@ -437,6 +437,9 @@ public final class AbilityFactoryReveal { c.setTapped(true); } } + if (params.containsKey("ForgetOtherRemembered")) { + sa.getSourceCard().clearRemembered(); + } if (params.containsKey("RememberChanged")) { host.addRemembered(c); }