mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
[KHM] Implemented Avalanche Caller
This commit is contained in:
parent
565a92b63b
commit
5160f3ec2d
2 changed files with 83 additions and 0 deletions
82
Mage.Sets/src/mage/cards/a/AvalancheCaller.java
Normal file
82
Mage.Sets/src/mage/cards/a/AvalancheCaller.java
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.continuous.BecomesCreatureTargetEffect;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.abilities.keyword.HexproofAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledLandPermanent;
|
||||
import mage.game.permanent.token.TokenImpl;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class AvalancheCaller extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterControlledLandPermanent("snow land you control");
|
||||
|
||||
static {
|
||||
filter.add(SuperType.SNOW.getPredicate());
|
||||
}
|
||||
|
||||
public AvalancheCaller(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}");
|
||||
|
||||
this.addSuperType(SuperType.SNOW);
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.WIZARD);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// {2}: Target snow land you control becomes a 4/4 Elemental creature with haste and hexproof until end of turn. It's still a land.
|
||||
Ability ability = new SimpleActivatedAbility(new BecomesCreatureTargetEffect(
|
||||
new AvalancheCallerToken(), false, true, Duration.EndOfTurn
|
||||
), new GenericManaCost(2));
|
||||
ability.addTarget(new TargetPermanent(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private AvalancheCaller(final AvalancheCaller card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AvalancheCaller copy() {
|
||||
return new AvalancheCaller(this);
|
||||
}
|
||||
}
|
||||
|
||||
class AvalancheCallerToken extends TokenImpl {
|
||||
|
||||
AvalancheCallerToken() {
|
||||
super("", "4/4 Elemental creature with haste and hexproof");
|
||||
this.cardType.add(CardType.CREATURE);
|
||||
this.subtype.add(SubType.ELEMENTAL);
|
||||
|
||||
this.power = new MageInt(4);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
this.addAbility(HasteAbility.getInstance());
|
||||
this.addAbility(HexproofAbility.getInstance());
|
||||
}
|
||||
|
||||
private AvalancheCallerToken(final AvalancheCallerToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public AvalancheCallerToken copy() {
|
||||
return new AvalancheCallerToken(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -67,6 +67,7 @@ public final class Kaldheim extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Arctic Treeline", 249, Rarity.COMMON, mage.cards.a.ArcticTreeline.class));
|
||||
cards.add(new SetCardInfo("Armed and Armored", 379, Rarity.UNCOMMON, mage.cards.a.ArmedAndArmored.class));
|
||||
cards.add(new SetCardInfo("Augury Raven", 44, Rarity.COMMON, mage.cards.a.AuguryRaven.class));
|
||||
cards.add(new SetCardInfo("Avalanche Caller", 45, Rarity.UNCOMMON, mage.cards.a.AvalancheCaller.class));
|
||||
cards.add(new SetCardInfo("Axgard Armory", 250, Rarity.UNCOMMON, mage.cards.a.AxgardArmory.class));
|
||||
cards.add(new SetCardInfo("Axgard Braggart", 1, Rarity.COMMON, mage.cards.a.AxgardBraggart.class));
|
||||
cards.add(new SetCardInfo("Axgard Cavalry", 121, Rarity.COMMON, mage.cards.a.AxgardCavalry.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue