* Fixed some corner cases for Worl Enchantment State-Based actions (704.5k).

This commit is contained in:
LevelX2 2020-07-18 12:36:35 +02:00
parent a2ae232b43
commit ecc05f9535

View file

@ -25,7 +25,7 @@ public class SerializationTest extends CardTestPlayerBase {
public void test_PermanentImpl_Simple() {
CardInfo cardInfo = CardRepository.instance.findCard("Balduvian Bears");
PermanentImpl permanent = new PermanentCard(cardInfo.getCard(), playerA.getId(), currentGame);
currentGame.addPermanent(permanent);
currentGame.addPermanent(permanent, 0);
Object compressed = CompressUtil.compress(permanent);
Assert.assertTrue("Must be zip", compressed instanceof ZippedObjectImpl);
@ -37,7 +37,7 @@ public class SerializationTest extends CardTestPlayerBase {
public void test_PermanentImpl_MarkedDamageInfo() {
CardInfo cardInfo = CardRepository.instance.findCard("Balduvian Bears");
PermanentImpl permanent = new PermanentCard(cardInfo.getCard(), playerA.getId(), currentGame);
currentGame.addPermanent(permanent);
currentGame.addPermanent(permanent, 0);
// mark damage from infected ability
permanent.addAbility(InfectAbility.getInstance(), null, currentGame);