mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Implemented Unlikely Aid
This commit is contained in:
parent
868053904b
commit
f429973535
2 changed files with 41 additions and 0 deletions
40
Mage.Sets/src/mage/cards/u/UnlikelyAid.java
Normal file
40
Mage.Sets/src/mage/cards/u/UnlikelyAid.java
Normal file
|
@ -0,0 +1,40 @@
|
|||
package mage.cards.u;
|
||||
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||
import mage.abilities.keyword.IndestructibleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class UnlikelyAid extends CardImpl {
|
||||
|
||||
public UnlikelyAid(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{B}");
|
||||
|
||||
// Target creature gets +2/+0 and gains indestructible until end of turn.
|
||||
this.getSpellAbility().addEffect(new BoostTargetEffect(
|
||||
2, 0, Duration.EndOfTurn
|
||||
).setText("Target creature gets +2/+0"));
|
||||
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(
|
||||
IndestructibleAbility.getInstance(), Duration.EndOfTurn
|
||||
).setText("and gains indestructable until end of turn"));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
}
|
||||
|
||||
private UnlikelyAid(final UnlikelyAid card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public UnlikelyAid copy() {
|
||||
return new UnlikelyAid(this);
|
||||
}
|
||||
}
|
|
@ -243,6 +243,7 @@ public final class WarOfTheSpark extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Totally Lost", 74, Rarity.COMMON, mage.cards.t.TotallyLost.class));
|
||||
cards.add(new SetCardInfo("Trusted Pegasus", 36, Rarity.COMMON, mage.cards.t.TrustedPegasus.class));
|
||||
cards.add(new SetCardInfo("Turret Ogre", 148, Rarity.COMMON, mage.cards.t.TurretOgre.class));
|
||||
cards.add(new SetCardInfo("Unlikely Aid", 109, Rarity.COMMON, mage.cards.u.UnlikelyAid.class));
|
||||
cards.add(new SetCardInfo("Vivien's Arkbow", 181, Rarity.RARE, mage.cards.v.ViviensArkbow.class));
|
||||
cards.add(new SetCardInfo("Vivien's Grizzly", 182, Rarity.COMMON, mage.cards.v.ViviensGrizzly.class));
|
||||
cards.add(new SetCardInfo("Vivien, Champion of the Wilds", 180, Rarity.RARE, mage.cards.v.VivienChampionOfTheWilds.class));
|
||||
|
|
Loading…
Reference in a new issue