mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
Added Amaranthine Wall for Dominaria set
This commit is contained in:
parent
10be36013e
commit
10e30a3903
1 changed files with 50 additions and 0 deletions
50
Mage.Sets/src/mage/cards/a/AmaranthineWall.java
Normal file
50
Mage.Sets/src/mage/cards/a/AmaranthineWall.java
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package mage.cards.a;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
|
||||
import mage.abilities.keyword.DefenderAbility;
|
||||
import mage.abilities.keyword.IndestructibleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rystan
|
||||
*/
|
||||
public class AmaranthineWall extends CardImpl {
|
||||
|
||||
public AmaranthineWall(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{4}");
|
||||
this.subtype.add(SubType.WALL);
|
||||
this.power = new MageInt(0);
|
||||
this.toughness = new MageInt(6);
|
||||
|
||||
// Defender
|
||||
this.addAbility(DefenderAbility.getInstance());
|
||||
// {2}: Amaranthine Wall gains indestructible until end of turn.
|
||||
GainAbilitySourceEffect effect = new GainAbilitySourceEffect(IndestructibleAbility.getInstance(), Duration.EndOfTurn);
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(effect, new ManaCostsImpl("{2}"));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
public AmaranthineWall(final AmaranthineWall card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AmaranthineWall copy() {
|
||||
return new AmaranthineWall(this);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue