mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
[DMU] Implemented Aggressive Sabotage
This commit is contained in:
parent
708985705f
commit
d64821fd21
2 changed files with 46 additions and 0 deletions
45
Mage.Sets/src/mage/cards/a/AggressiveSabotage.java
Normal file
45
Mage.Sets/src/mage/cards/a/AggressiveSabotage.java
Normal file
|
@ -0,0 +1,45 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.condition.common.KickedCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.effects.common.discard.DiscardTargetEffect;
|
||||
import mage.abilities.keyword.KickerAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.TargetPlayer;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author weirddan455
|
||||
*/
|
||||
public final class AggressiveSabotage extends CardImpl {
|
||||
|
||||
public AggressiveSabotage(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}");
|
||||
|
||||
// Kicker {R}
|
||||
this.addAbility(new KickerAbility("{R}"));
|
||||
|
||||
// Target player discards two cards. If this spell was kicked, it deals 3 damage to that player.
|
||||
this.getSpellAbility().addEffect(new DiscardTargetEffect(2));
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new DamageTargetEffect(3),
|
||||
KickedCondition.ONCE,
|
||||
"If this spell was kicked, it deals 3 damage to that player."
|
||||
));
|
||||
this.getSpellAbility().addTarget(new TargetPlayer());
|
||||
}
|
||||
|
||||
private AggressiveSabotage(final AggressiveSabotage card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AggressiveSabotage copy() {
|
||||
return new AggressiveSabotage(this);
|
||||
}
|
||||
}
|
|
@ -35,6 +35,7 @@ public final class DominariaUnited extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Academy Wall", 41, Rarity.COMMON, mage.cards.a.AcademyWall.class));
|
||||
cards.add(new SetCardInfo("Adarkar Wastes", 243, Rarity.RARE, mage.cards.a.AdarkarWastes.class));
|
||||
cards.add(new SetCardInfo("Aether Channeler", 42, Rarity.RARE, mage.cards.a.AetherChanneler.class));
|
||||
cards.add(new SetCardInfo("Aggressive Sabotage", 78, Rarity.COMMON, mage.cards.a.AggressiveSabotage.class));
|
||||
cards.add(new SetCardInfo("Ajani, Sleeper Agent", 192, Rarity.MYTHIC, mage.cards.a.AjaniSleeperAgent.class));
|
||||
cards.add(new SetCardInfo("Archangel of Wrath", 3, Rarity.RARE, mage.cards.a.ArchangelOfWrath.class));
|
||||
cards.add(new SetCardInfo("Argivian Cavalier", 4, Rarity.COMMON, mage.cards.a.ArgivianCavalier.class));
|
||||
|
|
Loading…
Reference in a new issue