mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
test for #3195 combat celebrant. ut framework does not support testing this scenario
This commit is contained in:
parent
2c617ae652
commit
32cd4cc57d
1 changed files with 27 additions and 0 deletions
|
@ -88,4 +88,31 @@ public class ExertTest extends CardTestPlayerBase {
|
|||
assertLife(playerB, 24);
|
||||
assertTapped(gbInitiate, false); // stolen creature exerted does untap during owner's untap step
|
||||
}
|
||||
|
||||
@Test
|
||||
public void combatCelebrantExertedCannotAttackDuringNextCombatPhase() {
|
||||
/*
|
||||
Combat Celebrant 2R
|
||||
Creature - Human Warrior 4/1
|
||||
If Combat Celebrant hasn't been exerted this turn, you may exert it as it attacks. When you do, untap all other creatures you control and after this phase, there is an additional combat phase.
|
||||
*/
|
||||
String cCelebrant = "Combat Celebrant";
|
||||
String memnite = "Memnite"; // {0} 1/1
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, cCelebrant);
|
||||
addCard(Zone.BATTLEFIELD, playerA, memnite);
|
||||
|
||||
attack(1, playerA, cCelebrant);
|
||||
attack(1, playerA, memnite);
|
||||
setChoice(playerA, "Yes"); // exert for extra turn and untap all creatures
|
||||
attack(1, playerA, cCelebrant); // should not be able to attack again due to "if has not been exerted this turn"
|
||||
attack(1, playerA, memnite);
|
||||
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertLife(playerB, 14); // 4 + 1 + 1 (Celebrant once, Memnite twice)
|
||||
assertTapped(cCelebrant, true);
|
||||
assertTapped(memnite, true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue