mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
* Fixed some minor bugs of the split cards Supply // Demand and Pure // Simple.
This commit is contained in:
parent
435eb49b58
commit
a1fb65858c
2 changed files with 18 additions and 23 deletions
|
@ -25,18 +25,18 @@
|
|||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
package mage.sets.dissension;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.effects.common.DestroyAllEffect;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.cards.SplitCard;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Rarity;
|
||||
import mage.cards.SplitCard;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.MulticoloredPredicate;
|
||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
/**
|
||||
|
@ -45,13 +45,11 @@ import mage.target.TargetPermanent;
|
|||
*/
|
||||
public class PureSimple extends SplitCard {
|
||||
|
||||
private static final FilterPermanent filterAura = new FilterPermanent("aura");
|
||||
private static final FilterPermanent filterEquipment = new FilterPermanent("equipment");
|
||||
private static final FilterPermanent filterDestroy = new FilterPermanent("Auras and Equipment");
|
||||
private static final FilterPermanent filterMulticolor = new FilterPermanent("multicolor permanent");
|
||||
|
||||
static {
|
||||
filterAura.add(new SubtypePredicate("Aura"));
|
||||
filterEquipment.add(new SubtypePredicate("Equipment"));
|
||||
filterDestroy.add(Predicates.or(new SubtypePredicate("Aura"), new SubtypePredicate("Equipment")));
|
||||
filterMulticolor.add(new MulticoloredPredicate());
|
||||
}
|
||||
|
||||
|
@ -60,15 +58,13 @@ public class PureSimple extends SplitCard {
|
|||
this.expansionSetCode = "DIS";
|
||||
|
||||
// Pure
|
||||
// Destroy all Auras
|
||||
getLeftHalfCard().getSpellAbility().addEffect(new DestroyAllEffect(filterAura));
|
||||
// and Equipment.
|
||||
getLeftHalfCard().getSpellAbility().addEffect(new DestroyAllEffect(filterEquipment));
|
||||
// Destroy target multicolored permanent.
|
||||
getLeftHalfCard().getSpellAbility().addEffect(new DestroyTargetEffect());
|
||||
getLeftHalfCard().getSpellAbility().addTarget(new TargetPermanent(filterMulticolor));
|
||||
|
||||
// Simple
|
||||
// Destroy target multicolored permanent.
|
||||
getRightHalfCard().getSpellAbility().addEffect(new DestroyTargetEffect());
|
||||
getRightHalfCard().getSpellAbility().addTarget(new TargetPermanent(filterMulticolor));
|
||||
// Destroy all Auras and Equipment.
|
||||
getRightHalfCard().getSpellAbility().addEffect(new DestroyAllEffect(filterDestroy));
|
||||
}
|
||||
|
||||
public PureSimple(final PureSimple card) {
|
||||
|
|
|
@ -39,7 +39,6 @@ import mage.filter.predicate.mageobject.MulticoloredPredicate;
|
|||
import mage.game.permanent.token.SaprolingToken;
|
||||
import mage.target.common.TargetCardInLibrary;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
|
@ -53,16 +52,16 @@ public class SupplyDemand extends SplitCard {
|
|||
}
|
||||
|
||||
public SupplyDemand(UUID ownerId) {
|
||||
super(ownerId, 157, "Supply", "Demand", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{1}{W}{U}", "{X}{G}{W}", false);
|
||||
super(ownerId, 157, "Supply", "Demand", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{X}{G}{W}", "{1}{W}{U}", false);
|
||||
this.expansionSetCode = "DIS";
|
||||
|
||||
// Demand
|
||||
// Search your library for a multicolored card, reveal it, and put it into your hand. Then shuffle your library.
|
||||
getLeftHalfCard().getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(1, filter), true));
|
||||
|
||||
// Supply
|
||||
// Put X 1/1 green Saproling creature tokens onto the battlefield.
|
||||
getRightHalfCard().getSpellAbility().addEffect(new CreateTokenEffect(new SaprolingToken(), new ManacostVariableValue()));
|
||||
getLeftHalfCard().getSpellAbility().addEffect(new CreateTokenEffect(new SaprolingToken(), new ManacostVariableValue()));
|
||||
|
||||
// Demand
|
||||
// Search your library for a multicolored card, reveal it, and put it into your hand. Then shuffle your library.
|
||||
getRightHalfCard().getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(1, filter), true));
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue