mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
[40K] Implemented Toxicrene
This commit is contained in:
parent
973636f0ba
commit
b4009ca564
2 changed files with 78 additions and 0 deletions
77
Mage.Sets/src/mage/cards/t/Toxicrene.java
Normal file
77
Mage.Sets/src/mage/cards/t/Toxicrene.java
Normal file
|
@ -0,0 +1,77 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.ContinuousEffectImpl;
|
||||
import mage.abilities.keyword.DeathtouchAbility;
|
||||
import mage.abilities.keyword.ReachAbility;
|
||||
import mage.abilities.mana.AnyColorManaAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class Toxicrene extends CardImpl {
|
||||
|
||||
public Toxicrene(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}");
|
||||
|
||||
this.subtype.add(SubType.TYRANID);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Reach
|
||||
this.addAbility(ReachAbility.getInstance());
|
||||
|
||||
// Deathtouch
|
||||
this.addAbility(DeathtouchAbility.getInstance());
|
||||
|
||||
// Hypertoxic Miasma -- All lands have "{T}: Add one mana of any color" and lose all other abilities.
|
||||
this.addAbility(new SimpleStaticAbility(new ToxicreneEffect()).withFlavorWord("Hypertoxic Miasma"));
|
||||
}
|
||||
|
||||
private Toxicrene(final Toxicrene card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Toxicrene copy() {
|
||||
return new Toxicrene(this);
|
||||
}
|
||||
}
|
||||
|
||||
class ToxicreneEffect extends ContinuousEffectImpl {
|
||||
|
||||
ToxicreneEffect() {
|
||||
super(Duration.WhileOnBattlefield, Layer.AbilityAddingRemovingEffects_6, SubLayer.NA, Outcome.LoseAbility);
|
||||
staticText = "all lands have \"{T}: Add one mana of any color\" and lose all other abilities";
|
||||
}
|
||||
|
||||
private ToxicreneEffect(final ToxicreneEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ToxicreneEffect copy() {
|
||||
return new ToxicreneEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
for (Permanent permanent : game.getBattlefield().getActivePermanents(
|
||||
StaticFilters.FILTER_LAND, source.getControllerId(), source, game
|
||||
)) {
|
||||
permanent.removeAllAbilities(source.getSourceId(), game);
|
||||
permanent.addAbility(new AnyColorManaAbility(), source.getSourceId(), game);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -258,6 +258,7 @@ public final class Warhammer40000 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Thunderwolf Cavalry", 16, Rarity.UNCOMMON, mage.cards.t.ThunderwolfCavalry.class));
|
||||
cards.add(new SetCardInfo("Tomb Blade", 64, Rarity.RARE, mage.cards.t.TombBlade.class));
|
||||
cards.add(new SetCardInfo("Tomb Fortress", 168, Rarity.RARE, mage.cards.t.TombFortress.class));
|
||||
cards.add(new SetCardInfo("Toxicrene", 101, Rarity.RARE, mage.cards.t.Toxicrene.class));
|
||||
cards.add(new SetCardInfo("Tranquil Cove", 303, Rarity.COMMON, mage.cards.t.TranquilCove.class));
|
||||
cards.add(new SetCardInfo("Trazyn the Infinite", 65, Rarity.RARE, mage.cards.t.TrazynTheInfinite.class));
|
||||
cards.add(new SetCardInfo("Triarch Praetorian", 66, Rarity.UNCOMMON, mage.cards.t.TriarchPraetorian.class));
|
||||
|
|
Loading…
Reference in a new issue