From effa560e02eb43907632ccda23604e85442d6838 Mon Sep 17 00:00:00 2001
From: LevelX2 <ludwig.hirth@online.de>
Date: Wed, 7 Jan 2015 23:42:42 +0100
Subject: [PATCH] [FRF] Fixed a bug of Hooded Assassin.

---
 .../sets/fatereforged/HoodedAssassin.java     |  1 -
 .../cards/triggers/HoodedAssassinTest.java    | 64 +++++++++++++++++++
 2 files changed, 64 insertions(+), 1 deletion(-)
 create mode 100644 Mage.Tests/src/test/java/org/mage/test/cards/triggers/HoodedAssassinTest.java

diff --git a/Mage.Sets/src/mage/sets/fatereforged/HoodedAssassin.java b/Mage.Sets/src/mage/sets/fatereforged/HoodedAssassin.java
index 521780e61f..97cf3cabcc 100644
--- a/Mage.Sets/src/mage/sets/fatereforged/HoodedAssassin.java
+++ b/Mage.Sets/src/mage/sets/fatereforged/HoodedAssassin.java
@@ -68,7 +68,6 @@ public class HoodedAssassin extends CardImpl {
         // When Hooded Assassin enters the battlefield, choose one -
         // * Put a +1/+1 counter on Hooded Assassin.        
         Ability ability = new EntersBattlefieldTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), false);
-        ability.addTarget(new TargetCardInYourGraveyard(new FilterCreatureCard("creature card from your graveyard")));
         // * Destroy target creature that was dealt damage this turn.
         Mode mode = new Mode();
         mode.getEffects().add(new DestroyTargetEffect());
diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/triggers/HoodedAssassinTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/triggers/HoodedAssassinTest.java
new file mode 100644
index 0000000000..e04c896bf1
--- /dev/null
+++ b/Mage.Tests/src/test/java/org/mage/test/cards/triggers/HoodedAssassinTest.java
@@ -0,0 +1,64 @@
+/*
+ *  Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without modification, are
+ *  permitted provided that the following conditions are met:
+ *
+ *     1. Redistributions of source code must retain the above copyright notice, this list of
+ *        conditions and the following disclaimer.
+ *
+ *     2. Redistributions in binary form must reproduce the above copyright notice, this list
+ *        of conditions and the following disclaimer in the documentation and/or other materials
+ *        provided with the distribution.
+ *
+ *  THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
+ *  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ *  FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
+ *  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ *  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ *  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ *  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ *  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ *  The views and conclusions contained in the software and documentation are those of the
+ *  authors and should not be interpreted as representing official policies, either expressed
+ *  or implied, of BetaSteward_at_googlemail.com.
+ */
+package org.mage.test.cards.triggers;
+
+import mage.constants.PhaseStep;
+import mage.constants.Zone;
+import org.junit.Test;
+import org.mage.test.serverside.base.CardTestPlayerBase;
+
+/**
+ * Checks that the comes onto battlefield triggered modal ability works correctly.
+ *
+ * @author LevelX2
+ */
+
+public class HoodedAssassinTest extends CardTestPlayerBase {
+
+    /*
+     Hooded Assassin   1/2
+     When Hooded Assassin enters the battlefield, choose one -
+     * Put a +1/+1 counter on Hooded Assassin.
+     * Destroy target creature that was dealt damage this turn.
+    */
+
+    @Test
+    public void testFirstTriggeredAbility() {
+        addCard(Zone.HAND, playerA, "Hooded Assassin");
+        addCard(Zone.BATTLEFIELD, playerA, "Swamp", 3);
+
+        castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Hooded Assassin");
+
+        setStopAt(1, PhaseStep.BEGIN_COMBAT);
+        execute();
+
+        assertPermanentCount(playerA, "Hooded Assassin", 1);
+        assertPowerToughness(playerA, "Hooded Assassin", 2, 3);
+
+    }
+}
\ No newline at end of file