forked from External/mage
* move setPT to Card * Create DoubleFacedCard and DoubleFacedCardHalf to share code between … * Create Transforming Double Face Card class * allow putting either permanent side of a double faced card to the bat… * refactor exile and return transforming card * update ModalDoubleFacedCard references to DoubleFacedCard where relev… * update for GUI * refactor a disturb card * refactor more disturb cards for test coverage * refactor a transform card * refactor more transform cards for test coverage * fix Archangel Avacyn * fix cantPlayTDFCBackSide inconsistency * fix Double Faced Cards having triggers and static abilities when tran… * fix Double Faced Cards card view erroring when flipping in client * fix test_Copy_AsSpell_Backside inconsistency * enable Spider-Man MDFC * convert TDFC with saga as the front and add card references to Transf… * refactor More Than Meets the Eye Card * refactor a battle * refactor a craft card * update comment on PeterParkerTest * Merge branch 'master' into rework-dfc * fix Saga TDFC Azusa's Many Journeys * fix double faced cards adding permanent triggers / effects to game * move permanents entering map into Battlefield * convert Room cards for new Permanent structure * fix disturb not exiling * Merge branch 'master' into rework-dfc * fix Eddie Brock Power/Toughness * fix Miles Morales ability on main card * fix verify conditions for siege and day/night cards * change room characteristics to text effect to match game rules * update verify test to skip DoubleFacedCard in missing card test * accidentally removed transform condition * Merge branch 'master' into rework-dfc * fix verify * CardUtil - remove unnecessary line from castSingle method
59 lines
2.4 KiB
Java
59 lines
2.4 KiB
Java
package mage.cards.a;
|
|
|
|
import mage.abilities.common.BecomesBlockedSourceTriggeredAbility;
|
|
import mage.abilities.common.SagaAbility;
|
|
import mage.abilities.effects.common.ExileSagaAndReturnTransformedEffect;
|
|
import mage.abilities.effects.common.GainLifeEffect;
|
|
import mage.abilities.effects.common.UntapLandsEffect;
|
|
import mage.abilities.effects.common.continuous.PlayAdditionalLandsControllerEffect;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.cards.TransformingDoubleFacedCard;
|
|
import mage.constants.CardType;
|
|
import mage.constants.Duration;
|
|
import mage.constants.SagaChapter;
|
|
import mage.constants.SubType;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
*
|
|
* @author weirddan455
|
|
*/
|
|
public final class AzusasManyJourneys extends TransformingDoubleFacedCard {
|
|
|
|
public AzusasManyJourneys(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo,
|
|
new CardType[]{CardType.ENCHANTMENT}, new SubType[]{SubType.SAGA}, "{1}{G}",
|
|
"Likeness of the Seeker",
|
|
new CardType[]{CardType.ENCHANTMENT, CardType.CREATURE}, new SubType[]{SubType.HUMAN, SubType.MONK}, "G");
|
|
|
|
this.getRightHalfCard().setPT(3, 3);
|
|
|
|
// (As this Saga enters and after your draw step, add a lore counter.)
|
|
SagaAbility sagaAbility = new SagaAbility(this.getLeftHalfCard());
|
|
|
|
// I — You may play an additional land this turn.
|
|
sagaAbility.addChapterEffect(this.getLeftHalfCard(), SagaChapter.CHAPTER_I, new PlayAdditionalLandsControllerEffect(1, Duration.EndOfTurn));
|
|
|
|
// II — You gain 3 life.
|
|
sagaAbility.addChapterEffect(this.getLeftHalfCard(), SagaChapter.CHAPTER_II, new GainLifeEffect(3));
|
|
|
|
// III — Exile this Saga, then return it to the battlefield transformed under your control.
|
|
sagaAbility.addChapterEffect(this.getLeftHalfCard(), SagaChapter.CHAPTER_III, new ExileSagaAndReturnTransformedEffect());
|
|
|
|
this.getLeftHalfCard().addAbility(sagaAbility);
|
|
|
|
// Likeness of the Seeker
|
|
// Whenever Likeness of the Seeker becomes blocked, untap up to three lands you control.
|
|
this.getRightHalfCard().addAbility(new BecomesBlockedSourceTriggeredAbility(new UntapLandsEffect(3, true, true), false));
|
|
}
|
|
|
|
private AzusasManyJourneys(final AzusasManyJourneys card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public AzusasManyJourneys copy() {
|
|
return new AzusasManyJourneys(this);
|
|
}
|
|
}
|