forked from External/mage
[CMM] Implement Regal Sliver (#10691)
This commit is contained in:
parent
50989970cb
commit
e57d5d02c9
2 changed files with 64 additions and 0 deletions
63
Mage.Sets/src/mage/cards/r/RegalSliver.java
Normal file
63
Mage.Sets/src/mage/cards/r/RegalSliver.java
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.TriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.condition.common.MonarchIsSourceControllerCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.AddContinuousEffectToGame;
|
||||
import mage.abilities.effects.common.BecomesMonarchSourceEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostControlledEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.StaticFilters;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class RegalSliver extends CardImpl {
|
||||
|
||||
public RegalSliver(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}");
|
||||
|
||||
this.subtype.add(SubType.SLIVER);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Sliver creatures you control have "When this creature enters the battlefield, Slivers you control get +1/+1 until end of turn if you're the monarch. Otherwise, you become the monarch."
|
||||
TriggeredAbility trigger =
|
||||
new EntersBattlefieldTriggeredAbility(
|
||||
new ConditionalOneShotEffect(
|
||||
new AddContinuousEffectToGame(
|
||||
new BoostControlledEffect(1, 1, Duration.EndOfTurn,
|
||||
StaticFilters.FILTER_PERMANENT_SLIVERS
|
||||
)),
|
||||
new BecomesMonarchSourceEffect(),
|
||||
MonarchIsSourceControllerCondition.instance,
|
||||
"Slivers you control get +1/+1 until end of turn if you're the monarch. Otherwise, you become the monarch."
|
||||
)
|
||||
);
|
||||
|
||||
this.addAbility(new SimpleStaticAbility(new GainAbilityControlledEffect(
|
||||
trigger, Duration.WhileOnBattlefield,
|
||||
StaticFilters.FILTER_PERMANENT_ALL_SLIVERS
|
||||
).setText("Sliver creatures you control have \"When this creature enters the battlefield, "
|
||||
+ "Slivers you control get +1/+1 until end of turn if you're the monarch. Otherwise, you become the monarch.\"")));
|
||||
}
|
||||
|
||||
private RegalSliver(final RegalSliver card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RegalSliver copy() {
|
||||
return new RegalSliver(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -502,6 +502,7 @@ public final class CommanderMasters extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Realmwalker", 909, Rarity.RARE, mage.cards.r.Realmwalker.class));
|
||||
cards.add(new SetCardInfo("Reassembling Skeleton", 183, Rarity.UNCOMMON, mage.cards.r.ReassemblingSkeleton.class));
|
||||
cards.add(new SetCardInfo("Regal Behemoth", 316, Rarity.RARE, mage.cards.r.RegalBehemoth.class));
|
||||
cards.add(new SetCardInfo("Regal Sliver", 724, Rarity.RARE, mage.cards.r.RegalSliver.class));
|
||||
cards.add(new SetCardInfo("Rejuvenating Springs", 424, Rarity.RARE, mage.cards.r.RejuvenatingSprings.class));
|
||||
cards.add(new SetCardInfo("Reliquary Tower", 425, Rarity.UNCOMMON, mage.cards.r.ReliquaryTower.class));
|
||||
cards.add(new SetCardInfo("Renowned Weaponsmith", 114, Rarity.COMMON, mage.cards.r.RenownedWeaponsmith.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue