From 329ac6d98051964ebca4630c222d27e197f2eba1 Mon Sep 17 00:00:00 2001 From: drmDev Date: Fri, 17 Mar 2017 21:09:06 -0400 Subject: [PATCH] #2970 UT unable to duplicate issue --- .../combat/AttackBlockRestrictionsTest.java | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Mage.Tests/src/test/java/org/mage/test/combat/AttackBlockRestrictionsTest.java b/Mage.Tests/src/test/java/org/mage/test/combat/AttackBlockRestrictionsTest.java index 86542b6609..7dfc8c8710 100644 --- a/Mage.Tests/src/test/java/org/mage/test/combat/AttackBlockRestrictionsTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/combat/AttackBlockRestrictionsTest.java @@ -332,4 +332,33 @@ public class AttackBlockRestrictionsTest extends CardTestPlayerBase { assertPermanentCount(playerB, "Storm Crow", 0); } + /* + * Mogg Flunkies cannot attack alone. Cards like Goblin Assault force all goblins to attack each turn. + * Mogg Flunkies should not be able to attack. + */ + @Test + public void testMustAttackButCannotAttackAlone() + { + /* Mogg Flunkies {1}{R} 3/3 + Creature — Goblin + Mogg Flunkies can't attack or block alone. + */ + String flunkies = "Mogg Flunkies"; + + /* Goblin Assault {2}{R} + * Enchantment + At the beginning of your upkeep, create a 1/1 red Goblin creature token with haste. + Goblin creatures attack each turn if able. + */ + String gAssault = "Goblin Assault"; + + addCard(Zone.BATTLEFIELD, playerA, flunkies); + addCard(Zone.BATTLEFIELD, playerB, gAssault); + + setStopAt(1, PhaseStep.POSTCOMBAT_MAIN); + execute(); + + assertTapped(flunkies, false); + assertLife(playerB, 20); + } }