From f786727b40e5228964d3ce99b1342253e8e9209a Mon Sep 17 00:00:00 2001 From: magenoxx Date: Tue, 26 Jun 2012 00:41:08 +0400 Subject: [PATCH] Fixed Mortician Beetle --- .../riseoftheeldrazi/MorticianBeetle.java | 13 ++++--- .../sacrifice/MorticianBeetleTest.java | 35 +++++++++++++++++++ 2 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 Mage.Tests/src/test/java/org/mage/test/cards/abilities/oneshot/sacrifice/MorticianBeetleTest.java diff --git a/Mage.Sets/src/mage/sets/riseoftheeldrazi/MorticianBeetle.java b/Mage.Sets/src/mage/sets/riseoftheeldrazi/MorticianBeetle.java index 72fd635bb7f..dca3da47571 100644 --- a/Mage.Sets/src/mage/sets/riseoftheeldrazi/MorticianBeetle.java +++ b/Mage.Sets/src/mage/sets/riseoftheeldrazi/MorticianBeetle.java @@ -27,11 +27,11 @@ */ package mage.sets.riseoftheeldrazi; -import java.util.UUID; import mage.Constants.CardType; import mage.Constants.Rarity; import mage.Constants.Zone; import mage.MageInt; +import mage.MageObject; import mage.abilities.TriggeredAbilityImpl; import mage.abilities.effects.Effect; import mage.abilities.effects.common.counter.AddCountersSourceEffect; @@ -41,6 +41,8 @@ import mage.game.Game; import mage.game.events.GameEvent; import mage.game.events.GameEvent.EventType; +import java.util.UUID; + /** * * @author North @@ -56,6 +58,7 @@ public class MorticianBeetle extends CardImpl { this.power = new MageInt(1); this.toughness = new MageInt(1); + // Whenever a player sacrifices a creature, you may put a +1/+1 counter on Mortician Beetle. this.addAbility(new PlayerSacrificesCreatureTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), true)); } @@ -81,9 +84,11 @@ class PlayerSacrificesCreatureTriggeredAbility extends TriggeredAbilityImpl