mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 20:59:14 -08:00
metallic mimic fix
This commit is contained in:
parent
105f346ebc
commit
422ce699d1
2 changed files with 26 additions and 8 deletions
|
|
@ -27,7 +27,6 @@
|
|||
*/
|
||||
package mage.cards.m;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.AsEntersBattlefieldAbility;
|
||||
|
|
@ -37,17 +36,15 @@ import mage.abilities.effects.common.ChooseCreatureTypeEffect;
|
|||
import mage.abilities.effects.common.enterAttribute.EnterAttributeAddChosenSubtypeEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.EnterEventType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.Zone;
|
||||
import mage.constants.*;
|
||||
import mage.counters.CounterType;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.EntersTheBattlefieldEvent;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Styxo
|
||||
|
|
@ -109,7 +106,7 @@ class MetallicMimicReplacementEffect extends ReplacementEffectImpl {
|
|||
&& enteringCreature.isCreature()
|
||||
&& !event.getTargetId().equals(source.getSourceId())) {
|
||||
String subtype = (String) game.getState().getValue(sourcePermanent.getId() + "_type");
|
||||
return subtype != null && enteringCreature.getSubtype(game).contains(subtype);
|
||||
return subtype != null && enteringCreature.hasSubtype(subtype, game);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue