mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Resolve "multiple StaticAbility Pump on same creature does conflict"
This commit is contained in:
committed by
Michael Kamensky
parent
2d5ab947ab
commit
47d3a74387
@@ -2036,4 +2036,23 @@ public class GameSimulatorTest extends SimulationTestCase {
|
||||
assertTrue(dimirdgAfterCopy2.isFlipped());
|
||||
assertFalse(dimirdgAfterCopy2.getType().isLegendary());
|
||||
}
|
||||
|
||||
public void testStaticMultiPump() {
|
||||
Game game = initAndCreateGame();
|
||||
Player p = game.getPlayers().get(1);
|
||||
|
||||
Card c1 = addCard("Creakwood Liege", p);
|
||||
Card c2 = addCard("Creakwood Liege", p);
|
||||
|
||||
game.getPhaseHandler().devModeSet(PhaseType.MAIN1, p);
|
||||
|
||||
// update stats state
|
||||
game.getAction().checkStateEffects(true);
|
||||
|
||||
assertTrue(c1.getNetPower() == 4);
|
||||
assertTrue(c1.getNetToughness() == 4);
|
||||
|
||||
assertTrue(c2.getNetPower() == 4);
|
||||
assertTrue(c2.getNetToughness() == 4);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user