mirror of
https://github.com/correl/mage.git
synced 2025-03-12 17:00:08 -09:00
Implemented Of One Mind
This commit is contained in:
parent
b98bc23798
commit
b55143a3ab
2 changed files with 59 additions and 0 deletions
58
Mage.Sets/src/mage/cards/o/OfOneMind.java
Normal file
58
Mage.Sets/src/mage/cards/o/OfOneMind.java
Normal file
|
@ -0,0 +1,58 @@
|
|||
package mage.cards.o;
|
||||
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.condition.CompoundCondition;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.cost.SpellCostReductionSourceEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class OfOneMind extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterControlledCreaturePermanent(SubType.HUMAN);
|
||||
private static final FilterPermanent filter2 = new FilterControlledCreaturePermanent();
|
||||
|
||||
static {
|
||||
filter2.add(Predicates.not(SubType.HUMAN.getPredicate()));
|
||||
}
|
||||
|
||||
private static final Condition condition = new CompoundCondition(
|
||||
"you control a Human creature and a non-Human creature",
|
||||
new PermanentsOnTheBattlefieldCondition(filter),
|
||||
new PermanentsOnTheBattlefieldCondition(filter2)
|
||||
);
|
||||
|
||||
public OfOneMind(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{U}");
|
||||
|
||||
// This spell costs {2} less to cast if you control a Human creature and a non-Human creature.
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.STACK, new SpellCostReductionSourceEffect(2, condition)
|
||||
).setRuleAtTheTop(true));
|
||||
|
||||
// Draw two cards.
|
||||
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(2));
|
||||
}
|
||||
|
||||
private OfOneMind(final OfOneMind card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OfOneMind copy() {
|
||||
return new OfOneMind(this);
|
||||
}
|
||||
}
|
|
@ -200,6 +200,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Nethroi, Apex of Death", 197, Rarity.MYTHIC, mage.cards.n.NethroiApexOfDeath.class));
|
||||
cards.add(new SetCardInfo("Neutralize", 59, Rarity.UNCOMMON, mage.cards.n.Neutralize.class));
|
||||
cards.add(new SetCardInfo("Nightsquad Commando", 98, Rarity.COMMON, mage.cards.n.NightsquadCommando.class));
|
||||
cards.add(new SetCardInfo("Of One Mind", 60, Rarity.COMMON, mage.cards.o.OfOneMind.class));
|
||||
cards.add(new SetCardInfo("Ominous Seas", 61, Rarity.UNCOMMON, mage.cards.o.OminousSeas.class));
|
||||
cards.add(new SetCardInfo("Pacifism", 25, Rarity.COMMON, mage.cards.p.Pacifism.class));
|
||||
cards.add(new SetCardInfo("Parcelbeast", 199, Rarity.UNCOMMON, mage.cards.p.Parcelbeast.class));
|
||||
|
|
Loading…
Add table
Reference in a new issue