mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
Game of Chaos impl. Kindly Stranger test for bug
This commit is contained in:
parent
1c7e3b7022
commit
7a3c15d8b8
3 changed files with 226 additions and 0 deletions
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* 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.single.soi;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author escplan9 (Derek Monturo - dmontur1 at gmail dot com)
|
||||
*/
|
||||
public class KindlyStrangerTest extends CardTestPlayerBase {
|
||||
|
||||
/*
|
||||
* Reported bug: When Kindly Stranger transforms, does not allow destroying target creature
|
||||
*/
|
||||
@Test
|
||||
public void transformDestroyCreature() {
|
||||
|
||||
// Delirium {2}{B}: Transform Kindly Stranger. Activate this ability only if there are four or more card types among cards in your graveyard.
|
||||
// When this creature transforms into Demon-Possessed Witch, you may destroy target creature.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Kindly Stranger");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 3);
|
||||
addCard(Zone.GRAVEYARD, playerA, "Bronze Sable", 1);
|
||||
addCard(Zone.GRAVEYARD, playerA, "Bitterblossom", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Hill Giant", 1);
|
||||
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{2}{B}");
|
||||
addTarget(playerA, "Hill Giant");
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Demon-Possessed Witch", 1);
|
||||
assertPermanentCount(playerA, "Kindly Stranger", 0);
|
||||
assertGraveyardCount(playerB, "Hill Giant", 1);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue