diff --git a/res/cardsfolder/s/sapling_of_colfenor.txt b/res/cardsfolder/s/sapling_of_colfenor.txt index c390dd05443..97f9a3e20e2 100644 --- a/res/cardsfolder/s/sapling_of_colfenor.txt +++ b/res/cardsfolder/s/sapling_of_colfenor.txt @@ -1,9 +1,15 @@ Name:Sapling of Colfenor ManaCost:3 BG BG Types:Legendary Creature Treefolk Shaman -Text:Whenever Sapling of Colfenor attacks, reveal the top card of your library. If it's a creature card, you gain life equal to that card's toughness, lose life equal to its power, then put it into your hand. PT:2/5 K:Indestructible +T:Mode$ Attacks | ValidCard$ Card.Self | Execute$ TrigDig | TriggerDescription$ Whenever Sapling of Colfenor attacks, reveal the top card of your library. If it's a creature card, you gain life equal to that card's toughness, lose life equal to its power, then put it into your hand. +SVar:TrigDig:DB$ Dig | DigNum$ 1 | Reveal$ True | ChangeNum$ All | ChangeValid$ Creature | DestinationZone$ Hand | RememberChanged$ True | DestinationZone2$ Library | LibraryPosition2$ 0 | SubAbility$ DBGain +SVar:DBGain:DB$ GainLife | LifeAmount$ Y | SubAbility$ DBLose | References$ Y +SVar:DBLose:DB$ LoseLife | LifeAmount$ X | SubAbility$ DBCleanup | References$ X +SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True +SVar:Y:Remembered$CardToughness +SVar:X:Remembered$CardPower SVar:Picture:http://www.wizards.com/global/images/magic/general/Sapling_of_Colfenor.jpg Oracle:Sapling of Colfenor is indestructible.\nWhenever Sapling of Colfenor attacks, reveal the top card of your library. If it's a creature card, you gain life equal to that card's toughness, lose life equal to its power, then put it into your hand. SetInfo:EVE Rare \ No newline at end of file diff --git a/src/main/java/forge/card/ability/effects/DigEffect.java b/src/main/java/forge/card/ability/effects/DigEffect.java index dc8227a8a6d..7ad34ece831 100644 --- a/src/main/java/forge/card/ability/effects/DigEffect.java +++ b/src/main/java/forge/card/ability/effects/DigEffect.java @@ -115,9 +115,7 @@ public class DigEffect extends SpellAbilityEffect { boolean hasRevealed = true; if (sa.hasParam("Reveal")) { - game.getAction().reveal(top, p); - // Singletons.getModel().getGameAction().revealToCopmuter(top.toArray()); - // - for when it exists + game.getAction().reveal(top, p, false); } else if (sa.hasParam("RevealOptional")) { String question = "Reveal: " + Lang.joinHomogenous(top) +"?"; diff --git a/src/main/java/forge/game/GameAction.java b/src/main/java/forge/game/GameAction.java index 1ed841967bc..e0c4a34f7b2 100644 --- a/src/main/java/forge/game/GameAction.java +++ b/src/main/java/forge/game/GameAction.java @@ -1405,8 +1405,12 @@ public class GameAction { } // sacrificeDestroy() public void reveal(List cards, Player cardOwner) { + reveal(cards, cardOwner, true); + } + + public void reveal(List cards, Player cardOwner, boolean dontRevealToOwner) { ZoneType zt = cards.isEmpty() ? ZoneType.Hand : game.getZoneOf(cards.get(0)).getZoneType(); - reveal(cardOwner + " reveals card from " + zt, cards, zt, cardOwner, true); + reveal(cardOwner + " reveals card from " + zt, cards, zt, cardOwner, dontRevealToOwner); } public void reveal(String message, List cards, ZoneType zt, Player cardOwner, boolean dontRevealToOwner) { diff --git a/src/main/java/forge/game/phase/CombatUtil.java b/src/main/java/forge/game/phase/CombatUtil.java index d8d2b51a0f4..22933536e79 100644 --- a/src/main/java/forge/game/phase/CombatUtil.java +++ b/src/main/java/forge/game/phase/CombatUtil.java @@ -1092,25 +1092,6 @@ public class CombatUtil { } // Witch-Maw Nephilim - else if (c.getName().equals("Sapling of Colfenor") && !c.getDamageHistory().getCreatureAttackedThisCombat()) { - final Player player = c.getController(); - - final PlayerZone lib = player.getZone(ZoneType.Library); - - if (lib.size() > 0) { - final List cl = new ArrayList(); - cl.add(lib.get(0)); - GuiChoose.oneOrNone("Top card", cl); - final Card top = lib.get(0); - if (top.isCreature()) { - player.gainLife(top.getBaseDefense(), c); - player.loseLife(top.getBaseAttack()); - - game.getAction().moveToHand(top); - } - } - } // Sapling of Colfenor - c.getDamageHistory().setCreatureAttackedThisCombat(true); c.getController().setAttackedWithCreatureThisTurn(true); c.getController().incrementAttackersDeclaredThisTurn();