mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
[SNC] Implemented Sewer Crocodile
This commit is contained in:
parent
c43acf68b2
commit
c367a99b8a
2 changed files with 64 additions and 0 deletions
63
Mage.Sets/src/mage/cards/s/SewerCrocodile.java
Normal file
63
Mage.Sets/src/mage/cards/s/SewerCrocodile.java
Normal file
|
|
@ -0,0 +1,63 @@
|
||||||
|
package mage.cards.s;
|
||||||
|
|
||||||
|
import mage.MageInt;
|
||||||
|
import mage.abilities.Ability;
|
||||||
|
import mage.abilities.common.SimpleActivatedAbility;
|
||||||
|
import mage.abilities.condition.common.DifferentManaValuesInGraveCondition;
|
||||||
|
import mage.abilities.costs.CostAdjuster;
|
||||||
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||||
|
import mage.abilities.effects.common.InfoEffect;
|
||||||
|
import mage.abilities.effects.common.combat.CantBeBlockedSourceEffect;
|
||||||
|
import mage.abilities.hint.common.DifferentManaValuesInGraveHint;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.Duration;
|
||||||
|
import mage.constants.SubType;
|
||||||
|
import mage.game.Game;
|
||||||
|
import mage.util.CardUtil;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class SewerCrocodile extends CardImpl {
|
||||||
|
|
||||||
|
public SewerCrocodile(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{5}{U}");
|
||||||
|
|
||||||
|
this.subtype.add(SubType.CROCODILE);
|
||||||
|
this.power = new MageInt(4);
|
||||||
|
this.toughness = new MageInt(6);
|
||||||
|
|
||||||
|
// {3}{U}: Sewer Crocodile can't be blocked this turn. This ability costs {3} less to activate if there are five or more mana values among cards in your graveyard.
|
||||||
|
Ability ability = new SimpleActivatedAbility(
|
||||||
|
new CantBeBlockedSourceEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{3}{U}")
|
||||||
|
);
|
||||||
|
ability.addEffect(new InfoEffect("This ability costs {3} less to activate " +
|
||||||
|
"if there are five or more mana values among cards in your graveyard"));
|
||||||
|
ability.setCostAdjuster(SewerCrocodileAdjuster.instance);
|
||||||
|
this.addAbility(ability.addHint(DifferentManaValuesInGraveHint.instance));
|
||||||
|
}
|
||||||
|
|
||||||
|
private SewerCrocodile(final SewerCrocodile card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public SewerCrocodile copy() {
|
||||||
|
return new SewerCrocodile(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
enum SewerCrocodileAdjuster implements CostAdjuster {
|
||||||
|
instance;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void adjustCosts(Ability ability, Game game) {
|
||||||
|
if (DifferentManaValuesInGraveCondition.FIVE.apply(game, ability)) {
|
||||||
|
CardUtil.reduceCost(ability, 3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -193,6 +193,7 @@ public final class StreetsOfNewCapenna extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Sanctuary Warden", 30, Rarity.MYTHIC, mage.cards.s.SanctuaryWarden.class));
|
cards.add(new SetCardInfo("Sanctuary Warden", 30, Rarity.MYTHIC, mage.cards.s.SanctuaryWarden.class));
|
||||||
cards.add(new SetCardInfo("Sanguine Spy", 93, Rarity.RARE, mage.cards.s.SanguineSpy.class));
|
cards.add(new SetCardInfo("Sanguine Spy", 93, Rarity.RARE, mage.cards.s.SanguineSpy.class));
|
||||||
cards.add(new SetCardInfo("Security Bypass", 59, Rarity.COMMON, mage.cards.s.SecurityBypass.class));
|
cards.add(new SetCardInfo("Security Bypass", 59, Rarity.COMMON, mage.cards.s.SecurityBypass.class));
|
||||||
|
cards.add(new SetCardInfo("Sewer Crocodile", 60, Rarity.COMMON, mage.cards.s.SewerCrocodile.class));
|
||||||
cards.add(new SetCardInfo("Shadow of Mortality", 94, Rarity.RARE, mage.cards.s.ShadowOfMortality.class));
|
cards.add(new SetCardInfo("Shadow of Mortality", 94, Rarity.RARE, mage.cards.s.ShadowOfMortality.class));
|
||||||
cards.add(new SetCardInfo("Shakedown Heavy", 95, Rarity.RARE, mage.cards.s.ShakedownHeavy.class));
|
cards.add(new SetCardInfo("Shakedown Heavy", 95, Rarity.RARE, mage.cards.s.ShakedownHeavy.class));
|
||||||
cards.add(new SetCardInfo("Skybridge Towers", 256, Rarity.COMMON, mage.cards.s.SkybridgeTowers.class));
|
cards.add(new SetCardInfo("Skybridge Towers", 256, Rarity.COMMON, mage.cards.s.SkybridgeTowers.class));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue