mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
[MH2] Implement Damn
This commit is contained in:
parent
d00a63c47d
commit
d732773259
1 changed files with 40 additions and 0 deletions
40
Mage.Sets/src/mage/cards/d/Damn.java
Normal file
40
Mage.Sets/src/mage/cards/d/Damn.java
Normal file
|
@ -0,0 +1,40 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.DestroyAllEffect;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.abilities.keyword.OverloadAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
import static mage.filter.StaticFilters.FILTER_PERMANENT_CREATURES;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author jmharmon
|
||||
*/
|
||||
|
||||
public final class Damn extends CardImpl {
|
||||
|
||||
public Damn(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{B}{B}");
|
||||
|
||||
// Destroy target creature. A creature destroyed this way can’t be regenerated.
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
this.getSpellAbility().addEffect(new DestroyTargetEffect(true));
|
||||
|
||||
// Overload {2}{W}{W} (You may cast this spell for its overload cost. If you do, change its text by replacing all instances of “target” with “each.”)
|
||||
this.addAbility(new OverloadAbility(this, new DestroyAllEffect(FILTER_PERMANENT_CREATURES, true), new ManaCostsImpl("{2}{W}{W")));
|
||||
}
|
||||
|
||||
private Damn(final Damn card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Damn copy() {
|
||||
return new Damn(this);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue