mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
Fix Teferi, Time Raveler behavior and ignore W6 emblem failure for now.
This commit is contained in:
parent
d3ee51c155
commit
fbc88f152e
4 changed files with 18 additions and 10 deletions
|
|
@ -509,7 +509,8 @@ public class ContinuousEffects implements Serializable {
|
|||
Card card = game.getCard(objectId);
|
||||
if (card != null && card instanceof SplitCardHalf) {
|
||||
idToCheck = ((SplitCardHalf) card).getParentCard().getId();
|
||||
} else if (card != null && card instanceof AdventureCardSpell) {
|
||||
} else if (card != null && type == AsThoughEffectType.PLAY_FROM_NOT_OWN_HAND_ZONE
|
||||
&& card instanceof AdventureCardSpell) {
|
||||
idToCheck = ((AdventureCardSpell) card).getParentCard().getId();
|
||||
} else {
|
||||
idToCheck = objectId;
|
||||
|
|
|
|||
|
|
@ -43,13 +43,16 @@ class WrennAndSixEmblemEffect extends ContinuousEffectImpl {
|
|||
}
|
||||
for (UUID cardId : controller.getGraveyard()) {
|
||||
Card card = game.getCard(cardId);
|
||||
if (card == null || !card.isInstantOrSorcery()) {
|
||||
if (card == null) {
|
||||
continue;
|
||||
}
|
||||
if (card instanceof AdventureCard) {
|
||||
// Adventure cards are castable per https://twitter.com/elishffrn/status/1179047911729946624
|
||||
card = ((AdventureCard) card).getSpellCard();
|
||||
}
|
||||
if (!card.isInstantOrSorcery()) {
|
||||
continue;
|
||||
}
|
||||
Ability ability = new RetraceAbility(card);
|
||||
ability.setSourceId(cardId);
|
||||
ability.setControllerId(card.getOwnerId());
|
||||
|
|
|
|||
|
|
@ -22,10 +22,7 @@ import mage.abilities.keyword.*;
|
|||
import mage.abilities.mana.ActivatedManaAbilityImpl;
|
||||
import mage.abilities.mana.ManaOptions;
|
||||
import mage.actions.MageDrawAction;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.Cards;
|
||||
import mage.cards.CardsImpl;
|
||||
import mage.cards.SplitCard;
|
||||
import mage.cards.*;
|
||||
import mage.cards.decks.Deck;
|
||||
import mage.choices.ChoiceImpl;
|
||||
import mage.constants.*;
|
||||
|
|
@ -3305,6 +3302,11 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
splitCard.getRightHalfCard().getAbilities(), availableMana, playable);
|
||||
getPlayableFromGraveyardCard(game, splitCard, splitCard.getSharedAbilities(),
|
||||
availableMana, playable);
|
||||
} else if (card instanceof AdventureCard) {
|
||||
AdventureCard adventureCard = (AdventureCard) card;
|
||||
getPlayableFromGraveyardCard(game, adventureCard.getSpellCard(),
|
||||
adventureCard.getSpellCard().getAbilities(), availableMana, playable);
|
||||
getPlayableFromGraveyardCard(game, adventureCard, adventureCard.getAbilities(), availableMana, playable);
|
||||
} else {
|
||||
getPlayableFromGraveyardCard(game, card, card.getAbilities(), availableMana, playable);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue