mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 17:58:01 +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)
|
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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user