mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
[ONE] Implement Rebel Salvo
This commit is contained in:
parent
7cfe65d300
commit
28fbaf9bb9
2 changed files with 47 additions and 0 deletions
46
Mage.Sets/src/mage/cards/r/RebelSalvo.java
Normal file
46
Mage.Sets/src/mage/cards/r/RebelSalvo.java
Normal file
|
@ -0,0 +1,46 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.AffinityEffect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.LoseAbilityTargetEffect;
|
||||
import mage.abilities.keyword.IndestructibleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.target.common.TargetCreatureOrPlaneswalker;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class RebelSalvo extends CardImpl {
|
||||
|
||||
private static final FilterControlledPermanent filter
|
||||
= new FilterControlledPermanent(SubType.EQUIPMENT, "Equipment");
|
||||
|
||||
public RebelSalvo(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{R}");
|
||||
|
||||
// Affinity for Equipment
|
||||
this.addAbility(new SimpleStaticAbility(new AffinityEffect(filter)));
|
||||
|
||||
// Rebel Salvo deals 5 damage to target creature or planeswalker. That permanent loses indestructible unil end of turn.
|
||||
this.getSpellAbility().addEffect(new DamageTargetEffect(5));
|
||||
this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalker());
|
||||
this.getSpellAbility().addEffect(new LoseAbilityTargetEffect(IndestructibleAbility.getInstance())
|
||||
.setText("that permanent loses indestructible unil end of turn"));
|
||||
}
|
||||
|
||||
private RebelSalvo(final RebelSalvo card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RebelSalvo copy() {
|
||||
return new RebelSalvo(this);
|
||||
}
|
||||
}
|
|
@ -154,6 +154,7 @@ public final class PhyrexiaAllWillBeOne extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Quicksilver Fisher", 66, Rarity.COMMON, mage.cards.q.QuicksilverFisher.class));
|
||||
cards.add(new SetCardInfo("Ravenous Necrotitan", 106, Rarity.UNCOMMON, mage.cards.r.RavenousNecrotitan.class));
|
||||
cards.add(new SetCardInfo("Razorverge Thicket", 257, Rarity.RARE, mage.cards.r.RazorvergeThicket.class));
|
||||
cards.add(new SetCardInfo("Rebel Salvo", 144, Rarity.UNCOMMON, mage.cards.r.RebelSalvo.class));
|
||||
cards.add(new SetCardInfo("Resistance Reunited", 31, Rarity.UNCOMMON, mage.cards.r.ResistanceReunited.class));
|
||||
cards.add(new SetCardInfo("Resistance Skywarden", 146, Rarity.UNCOMMON, mage.cards.r.ResistanceSkywarden.class));
|
||||
cards.add(new SetCardInfo("Ribskiff", 240, Rarity.UNCOMMON, mage.cards.r.Ribskiff.class));
|
||||
|
|
Loading…
Reference in a new issue