Implemented Scuttlegator

This commit is contained in:
Evan Kranzler 2019-01-11 22:14:59 -05:00
parent fca6797c2f
commit 20edcb4a66
2 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,59 @@
package mage.cards.s;
import mage.MageInt;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.condition.common.SourceHasCounterCondition;
import mage.abilities.decorator.ConditionalAsThoughEffect;
import mage.abilities.effects.common.combat.CanAttackAsThoughItDidntHaveDefenderSourceEffect;
import mage.abilities.keyword.AdaptAbility;
import mage.abilities.keyword.DefenderAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.constants.Zone;
import mage.counters.CounterType;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class Scuttlegator extends CardImpl {
public Scuttlegator(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{G/U}{G/U}");
this.subtype.add(SubType.CRAB);
this.subtype.add(SubType.TURTLE);
this.subtype.add(SubType.CROCODILE);
this.power = new MageInt(6);
this.toughness = new MageInt(6);
// Defender
this.addAbility(DefenderAbility.getInstance());
// {6}{G/U}{G/U}: Adapt 3.
this.addAbility(new AdaptAbility(3, "{6}{G/U}{G/U}"));
// As long as Scuttlegator has a +1/+1 counter on it, it can attack as though it didn't have defender.
this.addAbility(new SimpleStaticAbility(
Zone.BATTLEFIELD,
new ConditionalAsThoughEffect(
new CanAttackAsThoughItDidntHaveDefenderSourceEffect(Duration.WhileOnBattlefield),
new SourceHasCounterCondition(CounterType.P1P1)
).setText("As long as {this} has a +1/+1 counter on it, " +
"it can attack as though it didn't have defender.")
));
}
private Scuttlegator(final Scuttlegator card) {
super(card);
}
@Override
public Scuttlegator copy() {
return new Scuttlegator(this);
}
}

View file

@ -226,6 +226,7 @@ public final class RavnicaAllegiance extends ExpansionSet {
cards.add(new SetCardInfo("Scorchmark", 113, Rarity.COMMON, mage.cards.s.Scorchmark.class));
cards.add(new SetCardInfo("Scrabbling Claws", 238, Rarity.UNCOMMON, mage.cards.s.ScrabblingClaws.class));
cards.add(new SetCardInfo("Screaming Shield", 239, Rarity.UNCOMMON, mage.cards.s.ScreamingShield.class));
cards.add(new SetCardInfo("Scuttlegator", 218, Rarity.COMMON, mage.cards.s.Scuttlegator.class));
cards.add(new SetCardInfo("Senate Courier", 50, Rarity.COMMON, mage.cards.s.SenateCourier.class));
cards.add(new SetCardInfo("Senate Griffin", 219, Rarity.COMMON, mage.cards.s.SenateGriffin.class));
cards.add(new SetCardInfo("Senate Guildmage", 204, Rarity.UNCOMMON, mage.cards.s.SenateGuildmage.class));