mirror of
https://github.com/correl/mage.git
synced 2025-04-10 01:01:05 -09:00
[BRC] fix Machine God's Effigy errors
This commit is contained in:
parent
a6a69548e1
commit
0ed04e0c09
1 changed files with 3 additions and 2 deletions
|
@ -9,6 +9,7 @@ import mage.abilities.mana.BlueManaAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.SubTypeSet;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.StaticFilters;
|
import mage.filter.StaticFilters;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
|
@ -53,8 +54,8 @@ class MachineGodsEffigyApplier extends CopyApplier {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, MageObject blueprint, Ability source, UUID targetObjectId) {
|
public boolean apply(Game game, MageObject blueprint, Ability source, UUID targetObjectId) {
|
||||||
blueprint.retainAllArtifactSubTypes(null);
|
blueprint.getSubtype().removeIf(subType -> subType.getSubTypeSet() != SubTypeSet.ArtifactType);
|
||||||
blueprint.removeAllCardTypes(game);
|
blueprint.removeAllCardTypes();
|
||||||
blueprint.addCardType(CardType.ARTIFACT);
|
blueprint.addCardType(CardType.ARTIFACT);
|
||||||
blueprint.getAbilities().add(new BlueManaAbility());
|
blueprint.getAbilities().add(new BlueManaAbility());
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue