foul-magics/Mage.Sets/src/mage/cards/s/ShatteringSpree.java
2018-06-02 17:59:49 +02:00

36 lines
977 B
Java

package mage.cards.s;
import java.util.UUID;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.abilities.keyword.ReplicateAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.target.common.TargetArtifactPermanent;
/**
*
* @author LevelX2
*/
public final class ShatteringSpree extends CardImpl {
public ShatteringSpree(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{R}");
// Replicate {R}
this.addAbility(new ReplicateAbility(this, "{R}"));
// Destroy target artifact.
this.getSpellAbility().addEffect(new DestroyTargetEffect(false));
this.getSpellAbility().addTarget(new TargetArtifactPermanent());
}
public ShatteringSpree(final ShatteringSpree card) {
super(card);
}
@Override
public ShatteringSpree copy() {
return new ShatteringSpree(this);
}
}