Fixed a bug with Myrkul, Lord of Bones where creating an enchantment would crash the gameserver and require a rollback. (#9124)

This commit is contained in:
Spencer Callicott 2022-06-17 16:20:21 -05:00 committed by GitHub
parent 4e3c9be901
commit 2cf3e0fd74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,7 +107,7 @@ class MyrkulLordOfBonesEffect extends OneShotEffect {
).setPermanentModifier((token, g) -> {
token.getCardType().clear();
token.addCardType(CardType.ENCHANTMENT);
token.retainAllEnchantmentSubTypes(null);
token.retainAllEnchantmentSubTypes(g);
}).apply(game, source);
}
}