mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
Add Forebear's Blade for Dominaria set
This commit is contained in:
parent
d1d2a3aa0e
commit
67f32724b4
1 changed files with 70 additions and 0 deletions
70
Mage.Sets/src/mage/cards/f/ForebearsBlade.java
Normal file
70
Mage.Sets/src/mage/cards/f/ForebearsBlade.java
Normal file
|
@ -0,0 +1,70 @@
|
|||
/*
|
||||
* 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.f;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesAttachedTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.AttachEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostEquippedEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect;
|
||||
import mage.abilities.keyword.EquipAbility;
|
||||
import mage.abilities.keyword.VigilanceAbility;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.AttachmentType;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rystan
|
||||
*/
|
||||
public class ForebearsBlade extends CardImpl {
|
||||
|
||||
public ForebearsBlade(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}");
|
||||
this.subtype.add(SubType.EQUIPMENT);
|
||||
|
||||
// Equipped creature gets +3/+0
|
||||
Effect effect = new BoostEquippedEffect(3, 0);
|
||||
effect.setText("Equipped creature gets +3/+0");
|
||||
Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, effect);
|
||||
// and has vigilance
|
||||
effect = new GainAbilityAttachedEffect(VigilanceAbility.getInstance(), AttachmentType.EQUIPMENT);
|
||||
effect.setText("and has vigilance");
|
||||
ability.addEffect(effect);
|
||||
// and trample
|
||||
effect = new GainAbilityAttachedEffect(TrampleAbility.getInstance(), AttachmentType.EQUIPMENT);
|
||||
effect.setText("and trample");
|
||||
ability.addEffect(effect);
|
||||
|
||||
// Whenever equipped creature dies, attach Forebear’s Blade to target creature you control.
|
||||
ability = new DiesAttachedTriggeredAbility(
|
||||
new AttachEffect(Outcome.Neutral, "attach {source} to it"), "equipped creature", false);
|
||||
ability.addTarget(new TargetControlledCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
||||
// Equip {3}
|
||||
this.addAbility(new EquipAbility(Outcome.AddAbility, new GenericManaCost(3)));
|
||||
}
|
||||
|
||||
public ForebearsBlade(final ForebearsBlade card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ForebearsBlade copy() {
|
||||
return new ForebearsBlade(this);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue