mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 12:22:10 -08:00
[AVR] Gisela, Blade of Goldnight with test
This commit is contained in:
parent
bb0ac6e046
commit
02a21c6311
2 changed files with 191 additions and 0 deletions
|
|
@ -0,0 +1,49 @@
|
|||
package org.mage.test.cards.single;
|
||||
|
||||
import mage.Constants;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* Gisela, Blade of Goldnight:
|
||||
* If a source would deal damage to an opponent or a permanent an opponent controls, that source deals double that damage to that player or permanent instead.
|
||||
* If a source would deal damage to you or a permanent you control, prevent half that damage, rounded up.
|
||||
*
|
||||
* @author noxx
|
||||
*/
|
||||
public class GiselaBladeOfGoldnightTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testCard() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Mountain", 5);
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Gisela, Blade of Goldnight");
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Devout Chaplain");
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Corpse Traders");
|
||||
addCard(Constants.Zone.HAND, playerA, "Lightning Bolt", 4);
|
||||
addCard(Constants.Zone.HAND, playerA, "Shock");
|
||||
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerB, "Air Elemental", 1);
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerB, "Elite Vanguard", 1);
|
||||
|
||||
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Shock", "Air Elemental");
|
||||
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Lightning Bolt", playerA);
|
||||
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Lightning Bolt", playerB);
|
||||
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Lightning Bolt", "Devout Chaplain");
|
||||
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Lightning Bolt", "Llanowar Elves");
|
||||
|
||||
attack(2, playerB, "Elite Vanguard");
|
||||
|
||||
setStopAt(2, Constants.PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
// 1 from Lightning Bolt + 1 from Elite Vanguard
|
||||
assertLife(playerA, 18);
|
||||
assertLife(playerB, 14);
|
||||
|
||||
assertPermanentCount(playerA, "Devout Chaplain", 1);
|
||||
assertPermanentCount(playerA, "Llanowar Elves", 0);
|
||||
|
||||
assertPermanentCount(playerB, "Air Elemental", 0);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue