-
Notifications
You must be signed in to change notification settings - Fork 778
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package mage.cards.s; | ||
|
||
import mage.abilities.common.EntersBattlefieldTriggeredAbility; | ||
import mage.abilities.common.SimpleStaticAbility; | ||
import mage.abilities.effects.common.AttachEffect; | ||
import mage.abilities.effects.common.DontUntapInControllersUntapStepEnchantedEffect; | ||
import mage.abilities.effects.common.TapEnchantedEffect; | ||
import mage.abilities.keyword.EnchantAbility; | ||
import mage.cards.CardImpl; | ||
import mage.cards.CardSetInfo; | ||
import mage.constants.CardType; | ||
import mage.constants.Outcome; | ||
import mage.constants.SubType; | ||
import mage.target.TargetPermanent; | ||
import mage.target.common.TargetCreaturePermanent; | ||
|
||
import java.util.UUID; | ||
|
||
/** | ||
* @author TheElk801 | ||
*/ | ||
public final class StarlightSnare extends CardImpl { | ||
|
||
public StarlightSnare(UUID ownerId, CardSetInfo setInfo) { | ||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{U}"); | ||
|
||
this.subtype.add(SubType.AURA); | ||
|
||
// Enchant creature | ||
TargetPermanent auraTarget = new TargetCreaturePermanent(); | ||
this.getSpellAbility().addTarget(auraTarget); | ||
this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature)); | ||
this.addAbility(new EnchantAbility(auraTarget)); | ||
|
||
// When Starlight Snare enters, tap enchanted creature. | ||
this.addAbility(new EntersBattlefieldTriggeredAbility(new TapEnchantedEffect())); | ||
|
||
// Enchanted creature doesn't untap during its controller's untap step. | ||
this.addAbility(new SimpleStaticAbility(new DontUntapInControllersUntapStepEnchantedEffect())); | ||
} | ||
|
||
private StarlightSnare(final StarlightSnare card) { | ||
super(card); | ||
} | ||
|
||
@Override | ||
public StarlightSnare copy() { | ||
return new StarlightSnare(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters