mirror of
https://github.com/correl/mage.git
synced 2024-12-28 11:14:13 +00:00
[BRO] Implement Loran's Escape
This commit is contained in:
parent
d4bff2a07b
commit
aef9761e24
2 changed files with 44 additions and 0 deletions
43
Mage.Sets/src/mage/cards/l/LoransEscape.java
Normal file
43
Mage.Sets/src/mage/cards/l/LoransEscape.java
Normal file
|
@ -0,0 +1,43 @@
|
|||
package mage.cards.l;
|
||||
|
||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||
import mage.abilities.effects.keyword.ScryEffect;
|
||||
import mage.abilities.keyword.HexproofAbility;
|
||||
import mage.abilities.keyword.IndestructibleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class LoransEscape extends CardImpl {
|
||||
|
||||
public LoransEscape(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{W}");
|
||||
|
||||
// Target artifact or creature gains hexproof and indestructible until end of turn. Scry 1.
|
||||
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(
|
||||
HexproofAbility.getInstance(), Duration.EndOfTurn
|
||||
).setText("target artifact or creature gains hexproof"));
|
||||
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(
|
||||
IndestructibleAbility.getInstance(), Duration.EndOfTurn
|
||||
).setText("and indestructible until end of turn"));
|
||||
this.getSpellAbility().addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_CREATURE));
|
||||
this.getSpellAbility().addEffect(new ScryEffect(1, false));
|
||||
}
|
||||
|
||||
private LoransEscape(final LoransEscape card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public LoransEscape copy() {
|
||||
return new LoransEscape(this);
|
||||
}
|
||||
}
|
|
@ -126,6 +126,7 @@ public final class TheBrothersWar extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Levitating Statue", 236, Rarity.UNCOMMON, mage.cards.l.LevitatingStatue.class));
|
||||
cards.add(new SetCardInfo("Llanowar Wastes", 264, Rarity.RARE, mage.cards.l.LlanowarWastes.class));
|
||||
cards.add(new SetCardInfo("Loran of the Third Path", 12, Rarity.RARE, mage.cards.l.LoranOfTheThirdPath.class));
|
||||
cards.add(new SetCardInfo("Loran's Escape", 14, Rarity.COMMON, mage.cards.l.LoransEscape.class));
|
||||
cards.add(new SetCardInfo("Loran, Disciple of History", 13, Rarity.UNCOMMON, mage.cards.l.LoranDiscipleOfHistory.class));
|
||||
cards.add(new SetCardInfo("Machine Over Matter", 57, Rarity.COMMON, mage.cards.m.MachineOverMatter.class));
|
||||
cards.add(new SetCardInfo("Mass Production", 15, Rarity.UNCOMMON, mage.cards.m.MassProduction.class));
|
||||
|
|
Loading…
Reference in a new issue