mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
- Added test for #8293
This commit is contained in:
parent
5e1b04aeb8
commit
c6e385e321
1 changed files with 38 additions and 0 deletions
|
@ -0,0 +1,38 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package org.mage.test.cards.triggers.damage;
|
||||||
|
|
||||||
|
import mage.constants.PhaseStep;
|
||||||
|
import mage.constants.Zone;
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author jeffwadsworth
|
||||||
|
*/
|
||||||
|
public class SeraphAndSengirVampireTest extends CardTestPlayerBase {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testBothDieButTriggersStillFire() {
|
||||||
|
|
||||||
|
// https://github.com/magefree/mage/issues/8293
|
||||||
|
setStrictChooseMode(true);
|
||||||
|
addCard(Zone.BATTLEFIELD, playerA, "Seraph", 1); // 4/4 flying : take control of creature that dies after taking damage
|
||||||
|
addCard(Zone.BATTLEFIELD, playerB, "Sengir Vampire", 1); // 4/4 flying : gains +1/+1 for any creature that takes damage and dies
|
||||||
|
|
||||||
|
attack(3, playerA, "Seraph");
|
||||||
|
block(3, playerB, "Sengir Vampire", "Seraph");
|
||||||
|
|
||||||
|
setStopAt(4, PhaseStep.POSTCOMBAT_MAIN);
|
||||||
|
execute();
|
||||||
|
assertAllCommandsUsed();
|
||||||
|
|
||||||
|
assertGraveyardCount(playerA, "Seraph", 1); // Seraph dies
|
||||||
|
assertGraveyardCount(playerB, "Sengir Vampire", 0);
|
||||||
|
assertPermanentCount(playerA, "Sengir Vampire", 1); // playerA now controls the Sengir Vampire
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue