mirror of
https://github.com/correl/mage.git
synced 2024-12-28 11:14:13 +00:00
[BRO] Implement Scatter Ray
This commit is contained in:
parent
c25cb24152
commit
91e785e980
2 changed files with 45 additions and 0 deletions
44
Mage.Sets/src/mage/cards/s/ScatterRay.java
Normal file
44
Mage.Sets/src/mage/cards/s/ScatterRay.java
Normal file
|
@ -0,0 +1,44 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.CounterUnlessPaysEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.target.TargetSpell;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ScatterRay extends CardImpl {
|
||||
|
||||
private static final FilterSpell filter = new FilterSpell("artifact or creature spell");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.or(
|
||||
CardType.CREATURE.getPredicate(),
|
||||
CardType.ARTIFACT.getPredicate()
|
||||
));
|
||||
}
|
||||
|
||||
public ScatterRay(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}");
|
||||
|
||||
// Counter target artifact or creature spell unless its controller pays {4}.
|
||||
this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new GenericManaCost(4)));
|
||||
this.getSpellAbility().addTarget(new TargetSpell(filter));
|
||||
}
|
||||
|
||||
private ScatterRay(final ScatterRay card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ScatterRay copy() {
|
||||
return new ScatterRay(this);
|
||||
}
|
||||
}
|
|
@ -160,6 +160,7 @@ public final class TheBrothersWar extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Sardian Cliffstomper", 151, Rarity.UNCOMMON, mage.cards.s.SardianCliffstomper.class));
|
||||
cards.add(new SetCardInfo("Sarinth Greatwurm", 220, Rarity.MYTHIC, mage.cards.s.SarinthGreatwurm.class));
|
||||
cards.add(new SetCardInfo("Sarinth Steelseeker", 189, Rarity.UNCOMMON, mage.cards.s.SarinthSteelseeker.class));
|
||||
cards.add(new SetCardInfo("Scatter Ray", 61, Rarity.COMMON, mage.cards.s.ScatterRay.class));
|
||||
cards.add(new SetCardInfo("Scrapwork Cohort", 37, Rarity.COMMON, mage.cards.s.ScrapworkCohort.class));
|
||||
cards.add(new SetCardInfo("Scrapwork Mutt", 164, Rarity.COMMON, mage.cards.s.ScrapworkMutt.class));
|
||||
cards.add(new SetCardInfo("Scrapwork Rager", 123, Rarity.COMMON, mage.cards.s.ScrapworkRager.class));
|
||||
|
|
Loading…
Reference in a new issue