mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
[MOC] Implement Bright-Palm, Soul Awakener
This commit is contained in:
parent
bc70bfc91e
commit
8145cd33c5
2 changed files with 83 additions and 0 deletions
82
Mage.Sets/src/mage/cards/b/BrightPalmSoulAwakener.java
Normal file
82
Mage.Sets/src/mage/cards/b/BrightPalmSoulAwakener.java
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
package mage.cards.b;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.AttacksTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.combat.CantBeBlockedTargetEffect;
|
||||
import mage.abilities.keyword.BackupAbility;
|
||||
import mage.abilities.keyword.DauntAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.counters.CounterType;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class BrightPalmSoulAwakener extends CardImpl {
|
||||
|
||||
public BrightPalmSoulAwakener(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}{G}{W}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.FOX);
|
||||
this.subtype.add(SubType.SHAMAN);
|
||||
this.power = new MageInt(4);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Backup 1
|
||||
BackupAbility backupAbility = new BackupAbility(this, 1);
|
||||
this.addAbility(backupAbility);
|
||||
|
||||
// Whenever this creature attacks, double the number of +1/+1 counters on target creature. That creature can't be blocked by creatures with power 2 or less this turn.
|
||||
Ability ability = new AttacksTriggeredAbility(new BrightPalmSoulAwakenerEffect());
|
||||
ability.addEffect(new CantBeBlockedTargetEffect(
|
||||
DauntAbility.getFilter(), Duration.EndOfTurn
|
||||
).setText("that creature can't be blocked by creatures with power 2 or less this turn"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
backupAbility.addAbility(ability);
|
||||
}
|
||||
|
||||
private BrightPalmSoulAwakener(final BrightPalmSoulAwakener card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BrightPalmSoulAwakener copy() {
|
||||
return new BrightPalmSoulAwakener(this);
|
||||
}
|
||||
}
|
||||
|
||||
class BrightPalmSoulAwakenerEffect extends OneShotEffect {
|
||||
|
||||
BrightPalmSoulAwakenerEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "double the number of +1/+1 counters on target creature";
|
||||
}
|
||||
|
||||
private BrightPalmSoulAwakenerEffect(final BrightPalmSoulAwakenerEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BrightPalmSoulAwakenerEffect copy() {
|
||||
return new BrightPalmSoulAwakenerEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Permanent permanent = game.getPermanent(getTargetPointer().getFirst(game, source));
|
||||
if (permanent == null) {
|
||||
return false;
|
||||
}
|
||||
int count = permanent.getCounters(game).getCount(CounterType.P1P1);
|
||||
return count > 0 && permanent.addCounters(CounterType.P1P1.createInstance(count), source, game);
|
||||
}
|
||||
}
|
||||
|
|
@ -53,6 +53,7 @@ public final class MarchOfTheMachineCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Brass's Bounty", 272, Rarity.RARE, mage.cards.b.BrasssBounty.class));
|
||||
cards.add(new SetCardInfo("Brawn", 292, Rarity.UNCOMMON, mage.cards.b.Brawn.class));
|
||||
cards.add(new SetCardInfo("Bretagard Stronghold", 392, Rarity.UNCOMMON, mage.cards.b.BretagardStronghold.class));
|
||||
cards.add(new SetCardInfo("Bright-Palm, Soul Awakener", 1, Rarity.MYTHIC, mage.cards.b.BrightPalmSoulAwakener.class));
|
||||
cards.add(new SetCardInfo("Burnished Hart", 351, Rarity.UNCOMMON, mage.cards.b.BurnishedHart.class));
|
||||
cards.add(new SetCardInfo("Canopy Vista", 393, Rarity.RARE, mage.cards.c.CanopyVista.class));
|
||||
cards.add(new SetCardInfo("Cataclysmic Gearhulk", 176, Rarity.MYTHIC, mage.cards.c.CataclysmicGearhulk.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue