forked from External/mage
[FIN] Implement Red Mage's Rapier
This commit is contained in:
parent
a9c99ffc41
commit
ae52632cfc
2 changed files with 60 additions and 0 deletions
59
Mage.Sets/src/mage/cards/r/RedMagesRapier.java
Normal file
59
Mage.Sets/src/mage/cards/r/RedMagesRapier.java
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.effects.common.continuous.AddCardSubtypeAttachedEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostSourceEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect;
|
||||
import mage.abilities.keyword.EquipAbility;
|
||||
import mage.abilities.keyword.JobSelectAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.AttachmentType;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.StaticFilters;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class RedMagesRapier extends CardImpl {
|
||||
|
||||
public RedMagesRapier(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}{R}");
|
||||
|
||||
this.subtype.add(SubType.EQUIPMENT);
|
||||
|
||||
// Job select
|
||||
this.addAbility(new JobSelectAbility());
|
||||
|
||||
// Equipped creature has "Whenever you cast a noncreature spell, this creature gets +2/+0 until end of turn" and is a Wizard in addition to its other types.
|
||||
Ability ability = new SimpleStaticAbility(new GainAbilityAttachedEffect(
|
||||
new SpellCastControllerTriggeredAbility(
|
||||
new BoostSourceEffect(2, 0, Duration.EndOfTurn),
|
||||
StaticFilters.FILTER_SPELL_A_NON_CREATURE, false
|
||||
), AttachmentType.EQUIPMENT
|
||||
).setText("equipped creature has \"Whenever you cast a noncreature spell, " +
|
||||
"this creature gets +2/+0 until end of turn\""));
|
||||
ability.addEffect(new AddCardSubtypeAttachedEffect(
|
||||
SubType.WIZARD, AttachmentType.EQUIPMENT
|
||||
).setText("and is a Wizard in addition to its other types"));
|
||||
this.addAbility(ability);
|
||||
|
||||
// Equip {3}
|
||||
this.addAbility(new EquipAbility(3));
|
||||
}
|
||||
|
||||
private RedMagesRapier(final RedMagesRapier card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RedMagesRapier copy() {
|
||||
return new RedMagesRapier(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -379,6 +379,7 @@ public final class FinalFantasy extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Raubahn, Bull of Ala Mhigo", 465, Rarity.RARE, mage.cards.r.RaubahnBullOfAlaMhigo.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Raubahn, Bull of Ala Mhigo", 533, Rarity.RARE, mage.cards.r.RaubahnBullOfAlaMhigo.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Reach the Horizon", 195, Rarity.UNCOMMON, mage.cards.r.ReachTheHorizon.class));
|
||||
cards.add(new SetCardInfo("Red Mage's Rapier", 152, Rarity.COMMON, mage.cards.r.RedMagesRapier.class));
|
||||
cards.add(new SetCardInfo("Relm's Sketching", 67, Rarity.UNCOMMON, mage.cards.r.RelmsSketching.class));
|
||||
cards.add(new SetCardInfo("Reno and Rude", 113, Rarity.UNCOMMON, mage.cards.r.RenoAndRude.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Reno and Rude", 450, Rarity.UNCOMMON, mage.cards.r.RenoAndRude.class, NON_FULL_USE_VARIOUS));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue