mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[LCI] Implement Restless Anchorage
This commit is contained in:
parent
fdb309c5f3
commit
486f457ed6
2 changed files with 61 additions and 0 deletions
60
Mage.Sets/src/mage/cards/r/RestlessAnchorage.java
Normal file
60
Mage.Sets/src/mage/cards/r/RestlessAnchorage.java
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.common.AttacksTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTappedAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.continuous.BecomesCreatureSourceEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.abilities.mana.BlueManaAbility;
|
||||
import mage.abilities.mana.WhiteManaAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.game.permanent.token.MapToken;
|
||||
import mage.game.permanent.token.custom.CreatureToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class RestlessAnchorage extends CardImpl {
|
||||
|
||||
public RestlessAnchorage(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
||||
|
||||
// Restless Anchorage enters the battlefield tapped.
|
||||
this.addAbility(new EntersBattlefieldTappedAbility());
|
||||
|
||||
// {T}: Add {W} or {U}
|
||||
this.addAbility(new WhiteManaAbility());
|
||||
this.addAbility(new BlueManaAbility());
|
||||
|
||||
// {1}{W}{U}: Until end of turn, Restless Anchorage becomes a 2/3 white and blue Bird creature with flying. It's still a land.
|
||||
this.addAbility(new SimpleActivatedAbility(new BecomesCreatureSourceEffect(
|
||||
new CreatureToken(2, 3, "2/3 white and blue Bird creature with flying")
|
||||
.withColor("WU")
|
||||
.withSubType(SubType.BIRD)
|
||||
.withAbility(FlyingAbility.getInstance()),
|
||||
CardType.LAND, Duration.EndOfTurn
|
||||
), new ManaCostsImpl<>("{1}{W}{U}")));
|
||||
|
||||
// Whenever Restless Anchorage attacks, create a Map token.
|
||||
this.addAbility(new AttacksTriggeredAbility(
|
||||
new CreateTokenEffect(new MapToken())
|
||||
));
|
||||
}
|
||||
|
||||
private RestlessAnchorage(final RestlessAnchorage card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RestlessAnchorage copy() {
|
||||
return new RestlessAnchorage(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -79,6 +79,7 @@ public final class TheLostCavernsOfIxalan extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Quintorius Kand", 238, Rarity.MYTHIC, mage.cards.q.QuintoriusKand.class));
|
||||
cards.add(new SetCardInfo("Rampaging Spiketail", 116, Rarity.COMMON, mage.cards.r.RampagingSpiketail.class));
|
||||
cards.add(new SetCardInfo("Resplendent Angel", 32, Rarity.MYTHIC, mage.cards.r.ResplendentAngel.class));
|
||||
cards.add(new SetCardInfo("Restless Anchorage", 280, Rarity.RARE, mage.cards.r.RestlessAnchorage.class));
|
||||
cards.add(new SetCardInfo("Restless Prairie", 281, Rarity.RARE, mage.cards.r.RestlessPrairie.class));
|
||||
cards.add(new SetCardInfo("Roar of the Fifth People", 189, Rarity.MYTHIC, mage.cards.r.RoarOfTheFifthPeople.class));
|
||||
cards.add(new SetCardInfo("Saheeli, the Sun's Brilliance", 239, Rarity.MYTHIC, mage.cards.s.SaheeliTheSunsBrilliance.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue