mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
Added a bunch of spoiled cards for 4/5
* Added Colossapede * Added Cut // Ribbons * Added Insult // Injury (+test) * Added Mouth // Feed * Added Pouncing Cheetah * Added Scarab Feast * Added Rags // Riches (+test)
This commit is contained in:
parent
2487cf0645
commit
40870f22c2
11 changed files with 587 additions and 0 deletions
|
|
@ -0,0 +1,51 @@
|
|||
package org.mage.test.cards.single.akh;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* @author stravant
|
||||
*/
|
||||
public class InsultInjuryTest extends CardTestPlayerBase {
|
||||
@Test
|
||||
public void testCastInsult() {
|
||||
//Cast dusk from hand
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Grizzly Bears");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 5);
|
||||
addCard(Zone.HAND, playerA, "Lightning Bolt", 2);
|
||||
addCard(Zone.HAND, playerA, "Insult // Injury");
|
||||
|
||||
// Insult, and then deal 5 damage to opponent, should bring them to 10 life
|
||||
castSpell(3, PhaseStep.PRECOMBAT_MAIN, playerA, "Insult");
|
||||
attack(3, playerA, "Grizzly Bears");
|
||||
castSpell(3, PhaseStep.POSTCOMBAT_MAIN, playerA, "Lightning Bolt", playerB);
|
||||
|
||||
// Next turn, should only deal 3 damage with bolt
|
||||
castSpell(4, PhaseStep.POSTCOMBAT_MAIN, playerA, "Lightning Bolt", playerA);
|
||||
|
||||
setStopAt(4, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 17);
|
||||
assertLife(playerB, 10);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCastInjury() {
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Squire");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 3);
|
||||
addCard(Zone.GRAVEYARD, playerA, "Insult // Injury");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Injury", "Squire");
|
||||
addTarget(playerA, playerB);
|
||||
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertExileCount(playerA, "Insult // Injury", 1);
|
||||
assertGraveyardCount(playerB, "Squire", 1);
|
||||
assertLife(playerB, 18);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package org.mage.test.cards.single.akh;
|
||||
|
||||
import mage.constants.MultiplayerAttackOption;
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.RangeOfInfluence;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.FreeForAll;
|
||||
import mage.game.Game;
|
||||
import mage.game.GameException;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestMultiPlayerBase;
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
|
||||
/**
|
||||
* @author stravant
|
||||
*/
|
||||
public class RagsRichesTest extends CardTestMultiPlayerBase {
|
||||
@Override
|
||||
protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException {
|
||||
Game game = new FreeForAll(MultiplayerAttackOption.LEFT, RangeOfInfluence.ALL, 0, 20);
|
||||
// Player order: A -> D -> C -> B
|
||||
playerA = createPlayer(game, playerA, "PlayerA");
|
||||
playerB = createPlayer(game, playerB, "PlayerB");
|
||||
playerC = createPlayer(game, playerC, "PlayerC");
|
||||
playerD = createPlayer(game, playerD, "PlayerD");
|
||||
return game;
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testRiches() {
|
||||
addCard(Zone.GRAVEYARD, playerA, "Rags // Riches");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 7);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Squire");
|
||||
addCard(Zone.BATTLEFIELD, playerC, "Invisible Stalker"); // Make sure that there aren't targeting restrictions
|
||||
addCard(Zone.HAND, playerD, "Island");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Riches");
|
||||
|
||||
setStopAt(2, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertExileCount(playerA, 1);
|
||||
assertPermanentCount(playerB, 0);
|
||||
assertPermanentCount(playerC, 0);
|
||||
assertPermanentCount(playerA, 9);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue