Fix mutated creature staying facedown when bounced (#4255)

This commit is contained in:
tool4ever
2023-12-01 17:44:30 +01:00
committed by GitHub
parent f089346aa4
commit a0ba5e3ac2
3 changed files with 4 additions and 5 deletions

View File

@@ -551,6 +551,9 @@ public class GameAction {
zoneTo.add(copied, position, toBattlefield ? null : lastKnownInfo); // the modified state of the card is also reported here (e.g. for Morbid + Awaken) zoneTo.add(copied, position, toBattlefield ? null : lastKnownInfo); // the modified state of the card is also reported here (e.g. for Morbid + Awaken)
} else { } else {
zoneTo.add(card, position, CardUtil.getLKICopy(card)); zoneTo.add(card, position, CardUtil.getLKICopy(card));
card.setState(CardStateName.Original, false);
card.setBackSide(false);
card.updateStateForView();
} }
card.setZone(zoneTo); card.setZone(zoneTo);
} }

View File

@@ -1,12 +1,10 @@
package forge.game.ability.effects; package forge.game.ability.effects;
import java.util.HashMap; import java.util.HashMap;
import java.util.List;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import forge.game.Game; import forge.game.Game;
import forge.game.GameObject;
import forge.game.ability.AbilityKey; import forge.game.ability.AbilityKey;
import forge.game.ability.SpellAbilityEffect; import forge.game.ability.SpellAbilityEffect;
import forge.game.card.Card; import forge.game.card.Card;
@@ -34,8 +32,7 @@ public class MutateEffect extends SpellAbilityEffect {
host.setToken(true); host.setToken(true);
} }
final List<GameObject> targets = getDefinedOrTargeted(sa, "Defined"); final Card target = getDefinedCardsOrTargeted(sa, "Defined").get(0);
final Card target = (Card)targets.get(0);
CardCollectionView view = CardCollection.getView(Lists.newArrayList(host, target)); CardCollectionView view = CardCollection.getView(Lists.newArrayList(host, target));
final Card topCard = host.getController().getController().chooseSingleEntityForEffect( final Card topCard = host.getController().getController().chooseSingleEntityForEffect(

View File

@@ -730,7 +730,6 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
public boolean turnFaceDown() { public boolean turnFaceDown() {
return turnFaceDown(false); return turnFaceDown(false);
} }
public boolean turnFaceDown(boolean override) { public boolean turnFaceDown(boolean override) {
CardCollectionView cards = hasMergedCard() ? getMergedCards() : new CardCollection(this); CardCollectionView cards = hasMergedCard() ? getMergedCards() : new CardCollection(this);
boolean retResult = false; boolean retResult = false;