mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Implemented Abnormal Endurance
This commit is contained in:
parent
efa5df972f
commit
226e450d84
3 changed files with 47 additions and 2 deletions
43
Mage.Sets/src/mage/cards/a/AbnormalEndurance.java
Normal file
43
Mage.Sets/src/mage/cards/a/AbnormalEndurance.java
Normal file
|
@ -0,0 +1,43 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.effects.common.ReturnSourceFromGraveyardToBattlefieldEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class AbnormalEndurance extends CardImpl {
|
||||
|
||||
public AbnormalEndurance(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{B}");
|
||||
|
||||
// Until end of turn, target creature gets +2/+0 and gains "When this creature dies, return it to the battlefield tapped under its owner's control."
|
||||
getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
getSpellAbility().addEffect(new BoostTargetEffect(2, 0, Duration.EndOfTurn)
|
||||
.setText("Until end of turn, target creature gets +2/+0")
|
||||
);
|
||||
getSpellAbility().addEffect(new GainAbilityTargetEffect(
|
||||
new DiesTriggeredAbility(new ReturnSourceFromGraveyardToBattlefieldEffect(true, true), false),
|
||||
Duration.EndOfTurn,
|
||||
"and gains \"When this creature dies, return it to the battlefield tapped under its owner's control.\""
|
||||
));
|
||||
}
|
||||
|
||||
public AbnormalEndurance(final AbnormalEndurance card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbnormalEndurance copy() {
|
||||
return new AbnormalEndurance(this);
|
||||
}
|
||||
}
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.cards.s;
|
||||
|
||||
import java.util.UUID;
|
||||
|
@ -23,7 +22,9 @@ public final class SupernaturalStamina extends CardImpl {
|
|||
|
||||
// Until end of turn, target creature gets +2/+0 and gains "When this creature dies, return it to the battlefield tapped under its owner's control."
|
||||
getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
getSpellAbility().addEffect(new BoostTargetEffect(2, 0, Duration.EndOfTurn));
|
||||
getSpellAbility().addEffect(new BoostTargetEffect(2, 0, Duration.EndOfTurn)
|
||||
.setText("Until end of turn, target creature gets +2/+0")
|
||||
);
|
||||
getSpellAbility().addEffect(new GainAbilityTargetEffect(
|
||||
new DiesTriggeredAbility(
|
||||
new ReturnSourceFromGraveyardToBattlefieldEffect(true, true),
|
||||
|
|
|
@ -28,6 +28,7 @@ public final class CoreSet2019 extends ExpansionSet {
|
|||
this.numBoosterDoubleFaced = -1;
|
||||
this.maxCardNumberInBooster = 280;
|
||||
|
||||
cards.add(new SetCardInfo("Abnormal Endurance", 85, Rarity.COMMON, mage.cards.a.AbnormalEndurance.class));
|
||||
cards.add(new SetCardInfo("Act of Treason", 127, Rarity.COMMON, mage.cards.a.ActOfTreason.class));
|
||||
cards.add(new SetCardInfo("Aerial Engineer", 211, Rarity.UNCOMMON, mage.cards.a.AerialEngineer.class));
|
||||
cards.add(new SetCardInfo("Aggressive Mammoth", 302, Rarity.RARE, mage.cards.a.AggressiveMammoth.class));
|
||||
|
|
Loading…
Reference in a new issue