mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
[STX] Implemented Kelpie Guide
This commit is contained in:
parent
e504140be5
commit
85684c6bf1
3 changed files with 69 additions and 1 deletions
67
Mage.Sets/src/mage/cards/k/KelpieGuide.java
Normal file
67
Mage.Sets/src/mage/cards/k/KelpieGuide.java
Normal file
|
@ -0,0 +1,67 @@
|
|||
package mage.cards.k;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.ActivateIfConditionActivatedAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||
import mage.abilities.effects.common.TapTargetEffect;
|
||||
import mage.abilities.effects.common.UntapTargetEffect;
|
||||
import mage.abilities.hint.Hint;
|
||||
import mage.abilities.hint.ValueHint;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.ComparisonType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledLandPermanent;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class KelpieGuide extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter
|
||||
= new FilterControlledLandPermanent("you control eight or more lands");
|
||||
private static final Condition condition
|
||||
= new PermanentsOnTheBattlefieldCondition(filter, ComparisonType.MORE_THAN, 7);
|
||||
private static final Hint hint
|
||||
= new ValueHint("Lands you control", new PermanentsOnBattlefieldCount(filter));
|
||||
|
||||
public KelpieGuide(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}");
|
||||
|
||||
this.subtype.add(SubType.BEAST);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// {T}: Untap another target permanent you control.
|
||||
Ability ability = new SimpleActivatedAbility(new UntapTargetEffect(), new TapSourceCost());
|
||||
ability.addTarget(new TargetPermanent(filter));
|
||||
this.addAbility(ability);
|
||||
|
||||
// {T}: Tap target permanent. Activate only if you control eight or more lands.
|
||||
ability = new ActivateIfConditionActivatedAbility(
|
||||
Zone.BATTLEFIELD, new TapTargetEffect(), new TapSourceCost(), condition
|
||||
);
|
||||
ability.addTarget(new TargetPermanent());
|
||||
this.addAbility(ability.addHint(hint));
|
||||
}
|
||||
|
||||
private KelpieGuide(final KelpieGuide card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public KelpieGuide copy() {
|
||||
return new KelpieGuide(this);
|
||||
}
|
||||
}
|
|
@ -66,6 +66,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Introduction to Prophecy", 4, Rarity.COMMON, mage.cards.i.IntroductionToProphecy.class));
|
||||
cards.add(new SetCardInfo("Island", 368, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Kasmina, Enigma Sage", 196, Rarity.MYTHIC, mage.cards.k.KasminaEnigmaSage.class));
|
||||
cards.add(new SetCardInfo("Kelpie Guide", 45, Rarity.UNCOMMON, mage.cards.k.KelpieGuide.class));
|
||||
cards.add(new SetCardInfo("Kianne, Dean of Substance", 152, Rarity.RARE, mage.cards.k.KianneDeanOfSubstance.class));
|
||||
cards.add(new SetCardInfo("Lorehold Apprentice", 198, Rarity.UNCOMMON, mage.cards.l.LoreholdApprentice.class));
|
||||
cards.add(new SetCardInfo("Lorehold Campus", 268, Rarity.COMMON, mage.cards.l.LoreholdCampus.class));
|
||||
|
|
|
@ -34,7 +34,7 @@ public class ActivateIfConditionActivatedAbility extends ActivatedAbilityImpl {
|
|||
if (condition instanceof InvertCondition) {
|
||||
sb.append(" You can't activate this ability ");
|
||||
} else {
|
||||
sb.append(" Activate this ability only ");
|
||||
sb.append(" Activate only ");
|
||||
}
|
||||
if (!condition.toString().startsWith("during")
|
||||
&& !condition.toString().startsWith("before")
|
||||
|
|
Loading…
Reference in a new issue