mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +00:00
UT for #3542
This commit is contained in:
parent
1fddddcafa
commit
6eba170e3c
1 changed files with 43 additions and 0 deletions
|
@ -0,0 +1,43 @@
|
|||
package org.mage.test.multiplayer;
|
||||
|
||||
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;
|
||||
|
||||
public class MultiplayerTriggerTest extends CardTestMultiPlayerBase {
|
||||
|
||||
@Override
|
||||
protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException {
|
||||
Game game = new FreeForAll(MultiplayerAttackOption.MULTIPLE, RangeOfInfluence.ALL, 0, 40);
|
||||
// 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 testMultiplayerAttackStinkdrinkerBanditTrigger(){
|
||||
String pestermite = "Pestermite";
|
||||
String stinkdrinker = "Stinkdrinker Bandit";
|
||||
addCard(Zone.BATTLEFIELD, playerA, stinkdrinker);
|
||||
addCard(Zone.BATTLEFIELD, playerA, pestermite, 1);
|
||||
|
||||
attack(1, playerA, pestermite, playerB);
|
||||
attack(1, playerA, stinkdrinker, playerC);
|
||||
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertPowerToughness(playerA, pestermite, 4, 2);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue