mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 20:32:06 -08:00
* P/T defining static abilities - Fixed that the P/T is also set for the card if it's not a permanent (e.g. fixes that targeting a Nighmare with Margue Burst did always no damage).
This commit is contained in:
parent
d89970afde
commit
ce01d8cf25
9 changed files with 92 additions and 21 deletions
|
|
@ -0,0 +1,48 @@
|
|||
/*
|
||||
* 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;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
|
||||
/*
|
||||
Morgue Burst {4}{B}{R}
|
||||
Sorcery
|
||||
Return target creature card from your graveyard to your hand. Morgue Burst deals damage to target creature or player equal to the power of the card returned this way.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class MorgueBurstTest extends CardTestPlayerBase {
|
||||
|
||||
// Character defining static abilities (defining P/T of Nightmare) work in all zones
|
||||
@Test
|
||||
public void testNightmare() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 4);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 2);
|
||||
addCard(Zone.HAND, playerA, "Morgue Burst");
|
||||
addCard(Zone.GRAVEYARD, playerA, "Nightmare");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Morgue Burst", "Nightmare^targetPlayer=PlayerB");
|
||||
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 16);
|
||||
assertGraveyardCount(playerA, "Morgue Burst", 1);
|
||||
assertHandCount(playerA, 1);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue