mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Merge pull request #2979 from drmDev/ut/flunkies
#2970 UT unable to duplicate issue
This commit is contained in:
commit
5ec65196c5
1 changed files with 29 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue