[EMN] fixed Imprisoned in the Moon not correctly removing subtypes

This commit is contained in:
Evan Kranzler 2021-03-25 08:25:00 -04:00
parent b74ff4a2f8
commit 83993500e0
2 changed files with 52 additions and 48 deletions

View file

@ -280,6 +280,11 @@ public interface MageObject extends MageItem, Serializable {
game.getState().getCreateMageObjectAttribute(this, game).getSubtype().retainAll(SubType.getEnchantmentTypes());
}
default void retainAllLandSubTypes(Game game) {
setIsAllCreatureTypes(game, false);
game.getState().getCreateMageObjectAttribute(this, game).getSubtype().retainAll(SubType.getLandTypes());
}
/**
* Remove object's own creature types forever (for copy effects usage)
*/