mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Merge branch 'fix_imprint_mutate' into 'master'
Fix imprint cards that are not working correctly with mutate See merge request core-developers/forge!3844
This commit is contained in:
@@ -743,6 +743,17 @@ public class ChangeZoneEffect extends SpellAbilityEffect {
|
||||
if (c == gameCard) continue;
|
||||
hostCard.addImprintedCard(c);
|
||||
}
|
||||
// For Duplicant
|
||||
if (sa.hasParam("ImprintLast")) {
|
||||
Card lastCard = null;
|
||||
for (final Card c : movedCard.getOwner().getCardsIn(destination)) {
|
||||
if (hostCard.hasImprintedCard(c)) {
|
||||
hostCard.removeImprintedCard(c);
|
||||
lastCard = c;
|
||||
}
|
||||
}
|
||||
hostCard.addImprintedCard(lastCard);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,7 +134,8 @@ public class CopyPermanentEffect extends TokenEffectBase {
|
||||
chooser = AbilityUtils.getDefinedPlayers(sa.getHostCard(), choose, sa).get(0);
|
||||
}
|
||||
|
||||
CardCollectionView choices = game.getCardsIn(ZoneType.Battlefield);
|
||||
// For Mimic Vat with mutated creature, need to choose one imprinted card
|
||||
CardCollectionView choices = sa.hasParam("Defined") ? getDefinedCardsOrTargeted(sa) : game.getCardsIn(ZoneType.Battlefield);
|
||||
choices = CardLists.getValidCards(choices, sa.getParam("Choices"), activator, host);
|
||||
if (!choices.isEmpty()) {
|
||||
String title = sa.hasParam("ChoiceTitle") ? sa.getParam("ChoiceTitle") : Localizer.getInstance().getMessage("lblChooseaCard");
|
||||
|
||||
Reference in New Issue
Block a user