1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-05 01:09:06 -09:00

[BRC] fix Machine God's Effigy errors

This commit is contained in:
Evan Kranzler 2022-11-12 14:07:21 -05:00
parent a6a69548e1
commit 0ed04e0c09

View file

@ -9,6 +9,7 @@ import mage.abilities.mana.BlueManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubTypeSet;
import mage.constants.Zone;
import mage.filter.StaticFilters;
import mage.game.Game;
@ -53,8 +54,8 @@ class MachineGodsEffigyApplier extends CopyApplier {
@Override
public boolean apply(Game game, MageObject blueprint, Ability source, UUID targetObjectId) {
blueprint.retainAllArtifactSubTypes(null);
blueprint.removeAllCardTypes(game);
blueprint.getSubtype().removeIf(subType -> subType.getSubTypeSet() != SubTypeSet.ArtifactType);
blueprint.removeAllCardTypes();
blueprint.addCardType(CardType.ARTIFACT);
blueprint.getAbilities().add(new BlueManaAbility());
return true;