mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
[STX] Implemented Crackle with Power
This commit is contained in:
parent
6c86643d18
commit
74ee382734
2 changed files with 53 additions and 0 deletions
52
Mage.Sets/src/mage/cards/c/CrackleWithPower.java
Normal file
52
Mage.Sets/src/mage/cards/c/CrackleWithPower.java
Normal file
|
@ -0,0 +1,52 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.MultipliedValue;
|
||||
import mage.abilities.dynamicvalue.common.ManacostVariableValue;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.game.Game;
|
||||
import mage.target.common.TargetAnyTarget;
|
||||
import mage.target.targetadjustment.TargetAdjuster;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class CrackleWithPower extends CardImpl {
|
||||
|
||||
private static final DynamicValue value = new MultipliedValue(ManacostVariableValue.instance, 5);
|
||||
|
||||
public CrackleWithPower(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{X}{X}{X}{R}{R}");
|
||||
|
||||
// Crackle with Power deals five times X damage to up to X targets.
|
||||
this.getSpellAbility().addEffect(
|
||||
new DamageTargetEffect(value).setText("{this} deals five times X damage to up to X targets")
|
||||
);
|
||||
this.getSpellAbility().setTargetAdjuster(CrackleWithPowerAdjuster.instance);
|
||||
}
|
||||
|
||||
private CrackleWithPower(final CrackleWithPower card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CrackleWithPower copy() {
|
||||
return new CrackleWithPower(this);
|
||||
}
|
||||
}
|
||||
|
||||
enum CrackleWithPowerAdjuster implements TargetAdjuster {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public void adjustTargets(Ability ability, Game game) {
|
||||
ability.getTargets().clear();
|
||||
ability.addTarget(new TargetAnyTarget(0, ability.getManaCostsToPay().getX()));
|
||||
}
|
||||
}
|
|
@ -42,6 +42,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Campus Guide", 252, Rarity.COMMON, mage.cards.c.CampusGuide.class));
|
||||
cards.add(new SetCardInfo("Clever Lumimancer", 10, Rarity.UNCOMMON, mage.cards.c.CleverLumimancer.class));
|
||||
cards.add(new SetCardInfo("Combat Professor", 11, Rarity.COMMON, mage.cards.c.CombatProfessor.class));
|
||||
cards.add(new SetCardInfo("Crackle with Power", 95, Rarity.MYTHIC, mage.cards.c.CrackleWithPower.class));
|
||||
cards.add(new SetCardInfo("Creative Outburst", 171, Rarity.UNCOMMON, mage.cards.c.CreativeOutburst.class));
|
||||
cards.add(new SetCardInfo("Culmination of Studies", 173, Rarity.RARE, mage.cards.c.CulminationOfStudies.class));
|
||||
cards.add(new SetCardInfo("Curate", 40, Rarity.COMMON, mage.cards.c.Curate.class));
|
||||
|
|
Loading…
Reference in a new issue