mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
Implement Soul Strings
This commit is contained in:
parent
9500d8e154
commit
aac5135c44
1 changed files with 41 additions and 0 deletions
41
Mage.Sets/src/mage/cards/s/SoulStrings.java
Normal file
41
Mage.Sets/src/mage/cards/s/SoulStrings.java
Normal file
|
@ -0,0 +1,41 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.abilities.costs.mana.VariableManaCost;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.DoUnlessAnyPlayerPaysEffect;
|
||||
import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.common.FilterCreatureCard;
|
||||
import mage.target.common.TargetCardInGraveyard;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jmharmon
|
||||
*/
|
||||
|
||||
public final class SoulStrings extends CardImpl {
|
||||
|
||||
public SoulStrings(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{X}{B}");
|
||||
|
||||
// Return two target creature cards from your graveyard to your hand unless any player pays {X}.
|
||||
Effect effect = new DoUnlessAnyPlayerPaysEffect(
|
||||
new ReturnFromGraveyardToHandTargetEffect(), new VariableManaCost()
|
||||
);
|
||||
this.getSpellAbility().addEffect(effect);
|
||||
this.getSpellAbility().addTarget(new TargetCardInGraveyard(2, new FilterCreatureCard("creature cards from your graveyard")));
|
||||
}
|
||||
|
||||
public SoulStrings(final SoulStrings card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoulStrings copy() {
|
||||
return new SoulStrings(this);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue