mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
* Fixed some corner cases for Worl Enchantment State-Based actions (704.5k).
This commit is contained in:
parent
a2ae232b43
commit
ecc05f9535
1 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ public class SerializationTest extends CardTestPlayerBase {
|
||||||
public void test_PermanentImpl_Simple() {
|
public void test_PermanentImpl_Simple() {
|
||||||
CardInfo cardInfo = CardRepository.instance.findCard("Balduvian Bears");
|
CardInfo cardInfo = CardRepository.instance.findCard("Balduvian Bears");
|
||||||
PermanentImpl permanent = new PermanentCard(cardInfo.getCard(), playerA.getId(), currentGame);
|
PermanentImpl permanent = new PermanentCard(cardInfo.getCard(), playerA.getId(), currentGame);
|
||||||
currentGame.addPermanent(permanent);
|
currentGame.addPermanent(permanent, 0);
|
||||||
|
|
||||||
Object compressed = CompressUtil.compress(permanent);
|
Object compressed = CompressUtil.compress(permanent);
|
||||||
Assert.assertTrue("Must be zip", compressed instanceof ZippedObjectImpl);
|
Assert.assertTrue("Must be zip", compressed instanceof ZippedObjectImpl);
|
||||||
|
|
@ -37,7 +37,7 @@ public class SerializationTest extends CardTestPlayerBase {
|
||||||
public void test_PermanentImpl_MarkedDamageInfo() {
|
public void test_PermanentImpl_MarkedDamageInfo() {
|
||||||
CardInfo cardInfo = CardRepository.instance.findCard("Balduvian Bears");
|
CardInfo cardInfo = CardRepository.instance.findCard("Balduvian Bears");
|
||||||
PermanentImpl permanent = new PermanentCard(cardInfo.getCard(), playerA.getId(), currentGame);
|
PermanentImpl permanent = new PermanentCard(cardInfo.getCard(), playerA.getId(), currentGame);
|
||||||
currentGame.addPermanent(permanent);
|
currentGame.addPermanent(permanent, 0);
|
||||||
|
|
||||||
// mark damage from infected ability
|
// mark damage from infected ability
|
||||||
permanent.addAbility(InfectAbility.getInstance(), null, currentGame);
|
permanent.addAbility(InfectAbility.getInstance(), null, currentGame);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue