mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 09:48:02 +00:00
Fix mutated creature staying facedown when bounced (#4255)
This commit is contained in:
@@ -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)
|
||||
} else {
|
||||
zoneTo.add(card, position, CardUtil.getLKICopy(card));
|
||||
card.setState(CardStateName.Original, false);
|
||||
card.setBackSide(false);
|
||||
card.updateStateForView();
|
||||
}
|
||||
card.setZone(zoneTo);
|
||||
}
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
package forge.game.ability.effects;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
import forge.game.Game;
|
||||
import forge.game.GameObject;
|
||||
import forge.game.ability.AbilityKey;
|
||||
import forge.game.ability.SpellAbilityEffect;
|
||||
import forge.game.card.Card;
|
||||
@@ -34,8 +32,7 @@ public class MutateEffect extends SpellAbilityEffect {
|
||||
host.setToken(true);
|
||||
}
|
||||
|
||||
final List<GameObject> targets = getDefinedOrTargeted(sa, "Defined");
|
||||
final Card target = (Card)targets.get(0);
|
||||
final Card target = getDefinedCardsOrTargeted(sa, "Defined").get(0);
|
||||
|
||||
CardCollectionView view = CardCollection.getView(Lists.newArrayList(host, target));
|
||||
final Card topCard = host.getController().getController().chooseSingleEntityForEffect(
|
||||
|
||||
@@ -730,7 +730,6 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
||||
public boolean turnFaceDown() {
|
||||
return turnFaceDown(false);
|
||||
}
|
||||
|
||||
public boolean turnFaceDown(boolean override) {
|
||||
CardCollectionView cards = hasMergedCard() ? getMergedCards() : new CardCollection(this);
|
||||
boolean retResult = false;
|
||||
|
||||
Reference in New Issue
Block a user