mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
* Fixed a problem with Ooze Token that was wrongly created with P/T 0/0 (related to Inexorable Blob, Mitotic Slime and Corrupted Zendikon).
This commit is contained in:
parent
bc47bb0e7d
commit
35e8afb67c
5 changed files with 19 additions and 23 deletions
|
|
@ -27,7 +27,6 @@
|
||||||
*/
|
*/
|
||||||
package mage.cards.c;
|
package mage.cards.c;
|
||||||
|
|
||||||
import mage.MageInt;
|
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.DiesAttachedTriggeredAbility;
|
import mage.abilities.common.DiesAttachedTriggeredAbility;
|
||||||
import mage.abilities.common.SimpleStaticAbility;
|
import mage.abilities.common.SimpleStaticAbility;
|
||||||
|
|
@ -51,21 +50,19 @@ import java.util.UUID;
|
||||||
public class CorruptedZendikon extends CardImpl {
|
public class CorruptedZendikon extends CardImpl {
|
||||||
|
|
||||||
public CorruptedZendikon(UUID ownerId, CardSetInfo setInfo) {
|
public CorruptedZendikon(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{1}{B}");
|
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{B}");
|
||||||
this.subtype.add("Aura");
|
this.subtype.add("Aura");
|
||||||
|
|
||||||
|
|
||||||
// Enchant land
|
// Enchant land
|
||||||
// Enchanted land is a 3/3 black Ooze creature. It's still a land.
|
// Enchanted land is a 3/3 black Ooze creature. It's still a land.
|
||||||
// When enchanted land dies, return that card to its owner's hand.
|
// When enchanted land dies, return that card to its owner's hand.
|
||||||
|
|
||||||
TargetPermanent auraTarget = new TargetLandPermanent();
|
TargetPermanent auraTarget = new TargetLandPermanent();
|
||||||
this.getSpellAbility().addTarget(auraTarget);
|
this.getSpellAbility().addTarget(auraTarget);
|
||||||
this.getSpellAbility().addEffect(new AttachEffect(Outcome.PutCreatureInPlay));
|
this.getSpellAbility().addEffect(new AttachEffect(Outcome.PutCreatureInPlay));
|
||||||
Ability ability = new EnchantAbility(auraTarget.getTargetName());
|
Ability ability = new EnchantAbility(auraTarget.getTargetName());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
||||||
Ability ability2 = new SimpleStaticAbility(Zone.BATTLEFIELD, new BecomesCreatureAttachedEffect(new OozeToken(new MageInt(3), new MageInt(3)), "Enchanted land is a 3/3 black Ooze creature. It's still a land.", Duration.WhileOnBattlefield));
|
Ability ability2 = new SimpleStaticAbility(Zone.BATTLEFIELD, new BecomesCreatureAttachedEffect(new OozeToken(3, 3), "Enchanted land is a 3/3 black Ooze creature. It's still a land.", Duration.WhileOnBattlefield));
|
||||||
this.addAbility(ability2);
|
this.addAbility(ability2);
|
||||||
|
|
||||||
Ability ability3 = new DiesAttachedTriggeredAbility(new ReturnToHandAttachedEffect(), "enchanted land", false, false);
|
Ability ability3 = new DiesAttachedTriggeredAbility(new ReturnToHandAttachedEffect(), "enchanted land", false, false);
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@
|
||||||
*/
|
*/
|
||||||
package mage.cards.i;
|
package mage.cards.i;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.common.AttacksTriggeredAbility;
|
import mage.abilities.common.AttacksTriggeredAbility;
|
||||||
import mage.abilities.condition.common.DeliriumCondition;
|
import mage.abilities.condition.common.DeliriumCondition;
|
||||||
|
|
@ -37,8 +38,6 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.game.permanent.token.OozeToken;
|
import mage.game.permanent.token.OozeToken;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author fireshoes
|
* @author fireshoes
|
||||||
|
|
@ -46,14 +45,14 @@ import java.util.UUID;
|
||||||
public class InexorableBlob extends CardImpl {
|
public class InexorableBlob extends CardImpl {
|
||||||
|
|
||||||
public InexorableBlob(UUID ownerId, CardSetInfo setInfo) {
|
public InexorableBlob(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{G}");
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}");
|
||||||
this.subtype.add("Ooze");
|
this.subtype.add("Ooze");
|
||||||
this.power = new MageInt(3);
|
this.power = new MageInt(3);
|
||||||
this.toughness = new MageInt(3);
|
this.toughness = new MageInt(3);
|
||||||
|
|
||||||
// <i>Delirium</i> — Whenever Inexorable Blob attacks and there are at least four card types among cards in your graveyard,
|
// <i>Delirium</i> — Whenever Inexorable Blob attacks and there are at least four card types among cards in your graveyard,
|
||||||
// put a 3/3 green Ooze creature token onto the battlefield tapped and attacking.
|
// put a 3/3 green Ooze creature token onto the battlefield tapped and attacking.
|
||||||
this.addAbility(new ConditionalTriggeredAbility(new AttacksTriggeredAbility(new CreateTokenEffect(new OozeToken(new MageInt(3), new MageInt(3)), 1, true, true), false),
|
this.addAbility(new ConditionalTriggeredAbility(new AttacksTriggeredAbility(new CreateTokenEffect(new OozeToken(3, 3), 1, true, true), false),
|
||||||
DeliriumCondition.getInstance(),
|
DeliriumCondition.getInstance(),
|
||||||
"<i>Delirium</i> — Whenever {this} attacks and there are at least four card types among cards in your graveyard, "
|
"<i>Delirium</i> — Whenever {this} attacks and there are at least four card types among cards in your graveyard, "
|
||||||
+ "put a 3/3 green Ooze creature token onto the battlefield tapped and attacking."));
|
+ "put a 3/3 green Ooze creature token onto the battlefield tapped and attacking."));
|
||||||
|
|
|
||||||
|
|
@ -25,16 +25,15 @@
|
||||||
* authors and should not be interpreted as representing official policies, either expressed
|
* authors and should not be interpreted as representing official policies, either expressed
|
||||||
* or implied, of BetaSteward_at_googlemail.com.
|
* or implied, of BetaSteward_at_googlemail.com.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package mage.cards.m;
|
package mage.cards.m;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import mage.constants.CardType;
|
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.common.DiesTriggeredAbility;
|
import mage.abilities.common.DiesTriggeredAbility;
|
||||||
import mage.abilities.effects.common.CreateTokenEffect;
|
import mage.abilities.effects.common.CreateTokenEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
import mage.game.permanent.token.OozeToken;
|
import mage.game.permanent.token.OozeToken;
|
||||||
import mage.game.permanent.token.Token;
|
import mage.game.permanent.token.Token;
|
||||||
|
|
||||||
|
|
@ -45,7 +44,7 @@ import mage.game.permanent.token.Token;
|
||||||
public class MitoticSlime extends CardImpl {
|
public class MitoticSlime extends CardImpl {
|
||||||
|
|
||||||
public MitoticSlime(UUID ownerId, CardSetInfo setInfo) {
|
public MitoticSlime(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{G}");
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{G}");
|
||||||
this.subtype.add("Ooze");
|
this.subtype.add("Ooze");
|
||||||
|
|
||||||
this.power = new MageInt(4);
|
this.power = new MageInt(4);
|
||||||
|
|
@ -74,6 +73,6 @@ class Ooze2Token extends Token {
|
||||||
color.setGreen(true);
|
color.setGreen(true);
|
||||||
power = new MageInt(2);
|
power = new MageInt(2);
|
||||||
toughness = new MageInt(2);
|
toughness = new MageInt(2);
|
||||||
this.addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new OozeToken(new MageInt(1), new MageInt(1)), 2), false));
|
this.addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new OozeToken(1, 1), 2), false));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ import mage.target.TargetCard;
|
||||||
public class VesselOfNascency extends CardImpl {
|
public class VesselOfNascency extends CardImpl {
|
||||||
|
|
||||||
public VesselOfNascency(UUID ownerId, CardSetInfo setInfo) {
|
public VesselOfNascency(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{G}");
|
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{G}");
|
||||||
|
|
||||||
// {1}{G}, Sacrifice Vessel of Nascency: Reveal the top four cards of your library. You may put an artifact, creature, enchantment, land, or
|
// {1}{G}, Sacrifice Vessel of Nascency: Reveal the top four cards of your library. You may put an artifact, creature, enchantment, land, or
|
||||||
// planeswalker card from among them into your hand. Put the rest into your graveyard.
|
// planeswalker card from among them into your hand. Put the rest into your graveyard.
|
||||||
|
|
|
||||||
|
|
@ -4,13 +4,14 @@ import mage.MageInt;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
|
||||||
public class OozeToken extends Token {
|
public class OozeToken extends Token {
|
||||||
public OozeToken(MageInt power, MageInt toughness) {
|
|
||||||
|
public OozeToken(int power, int toughness) {
|
||||||
super("Ooze", power + "/" + toughness + " green ooze creature token");
|
super("Ooze", power + "/" + toughness + " green ooze creature token");
|
||||||
cardType.add(CardType.CREATURE);
|
cardType.add(CardType.CREATURE);
|
||||||
color.setGreen(true);
|
color.setGreen(true);
|
||||||
subtype.add("Ooze");
|
subtype.add("Ooze");
|
||||||
power = new MageInt(0);
|
this.power = new MageInt(power);
|
||||||
toughness = new MageInt(0);
|
this.toughness = new MageInt(toughness);
|
||||||
}
|
}
|
||||||
|
|
||||||
public OozeToken() {
|
public OozeToken() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue