mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Fixed a failing test.
This commit is contained in:
@@ -1,9 +1,6 @@
|
|||||||
package forge.ai.simulation;
|
package forge.ai.simulation;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
|
|
||||||
import forge.ai.ComputerUtilAbility;
|
import forge.ai.ComputerUtilAbility;
|
||||||
import forge.card.CardStateName;
|
import forge.card.CardStateName;
|
||||||
import forge.card.MagicColor;
|
import forge.card.MagicColor;
|
||||||
@@ -16,6 +13,8 @@ import forge.game.player.Player;
|
|||||||
import forge.game.spellability.SpellAbility;
|
import forge.game.spellability.SpellAbility;
|
||||||
import forge.game.zone.ZoneType;
|
import forge.game.zone.ZoneType;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public class GameSimulatorTest extends SimulationTestCase {
|
public class GameSimulatorTest extends SimulationTestCase {
|
||||||
|
|
||||||
public void testActivateAbilityTriggers() {
|
public void testActivateAbilityTriggers() {
|
||||||
@@ -184,7 +183,7 @@ public class GameSimulatorTest extends SimulationTestCase {
|
|||||||
GameSimulator sim = createSimulator(game, p);
|
GameSimulator sim = createSimulator(game, p);
|
||||||
Game simGame = sim.getSimulatedGameState();
|
Game simGame = sim.getSimulatedGameState();
|
||||||
|
|
||||||
SpellAbility unmorphSA = findSAWithPrefix(ripper, "Morph - Reveal a black card");
|
SpellAbility unmorphSA = findSAWithPrefix(ripper, "Morph —Reveal a black card");
|
||||||
assertNotNull(unmorphSA);
|
assertNotNull(unmorphSA);
|
||||||
sim.simulateSpellAbility(unmorphSA);
|
sim.simulateSpellAbility(unmorphSA);
|
||||||
assertEquals(18, simGame.getPlayers().get(0).getLife());
|
assertEquals(18, simGame.getPlayers().get(0).getLife());
|
||||||
|
|||||||
Reference in New Issue
Block a user