forked from magefree/mage
-
Notifications
You must be signed in to change notification settings - Fork 0
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
39 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,38 @@ | ||
package mage.cards.h; | ||
|
||
import mage.abilities.Ability; | ||
import mage.abilities.common.SimpleActivatedAbility; | ||
import mage.abilities.costs.common.TapSourceCost; | ||
import mage.abilities.costs.mana.GenericManaCost; | ||
import mage.abilities.effects.common.PhaseOutTargetEffect; | ||
import mage.cards.CardImpl; | ||
import mage.cards.CardSetInfo; | ||
import mage.constants.CardType; | ||
import mage.target.common.TargetControlledCreaturePermanent; | ||
|
||
import java.util.UUID; | ||
|
||
/** | ||
* @author TheElk801 | ||
*/ | ||
public final class Haystack extends CardImpl { | ||
|
||
public Haystack(UUID ownerId, CardSetInfo setInfo) { | ||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}{W}"); | ||
|
||
// {2}, {T}: Target creature you control phases out. | ||
Ability ability = new SimpleActivatedAbility(new PhaseOutTargetEffect(), new GenericManaCost(2)); | ||
ability.addCost(new TapSourceCost()); | ||
ability.addTarget(new TargetControlledCreaturePermanent()); | ||
this.addAbility(ability); | ||
} | ||
|
||
private Haystack(final Haystack card) { | ||
super(card); | ||
} | ||
|
||
@Override | ||
public Haystack copy() { | ||
return new Haystack(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