mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
* small changes to tooltip text.
This commit is contained in:
parent
04783b47da
commit
760773e15a
5 changed files with 35 additions and 7 deletions
|
@ -35,6 +35,7 @@ import mage.constants.*;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.SimpleStaticAbility;
|
import mage.abilities.common.SimpleStaticAbility;
|
||||||
import mage.abilities.costs.mana.GenericManaCost;
|
import mage.abilities.costs.mana.GenericManaCost;
|
||||||
|
import mage.abilities.effects.OneShotEffect;
|
||||||
import mage.abilities.effects.common.continious.BoostAllEffect;
|
import mage.abilities.effects.common.continious.BoostAllEffect;
|
||||||
import mage.abilities.keyword.ChangelingAbility;
|
import mage.abilities.keyword.ChangelingAbility;
|
||||||
import mage.abilities.keyword.EquipAbility;
|
import mage.abilities.keyword.EquipAbility;
|
||||||
|
@ -66,13 +67,15 @@ public class KondasBanner extends CardImpl<KondasBanner> {
|
||||||
this.supertype.add("Legendary");
|
this.supertype.add("Legendary");
|
||||||
this.subtype.add("Equipment");
|
this.subtype.add("Equipment");
|
||||||
|
|
||||||
|
// Konda's Banner can be attached only to a legendary creature.
|
||||||
|
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new InfoEffect()));
|
||||||
|
|
||||||
// Creatures that share a color with equipped creature get +1/+1.
|
// Creatures that share a color with equipped creature get +1/+1.
|
||||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new KondasBannerColorBoostEffect()));
|
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new KondasBannerColorBoostEffect()));
|
||||||
|
|
||||||
// Creatures that share a creature type with equipped creature get +1/+1.
|
// Creatures that share a creature type with equipped creature get +1/+1.
|
||||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new KondasBannerTypeBoostEffect()));
|
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new KondasBannerTypeBoostEffect()));
|
||||||
|
|
||||||
// Konda's Banner can be attached only to a legendary creature.
|
|
||||||
// Equip {2}
|
// Equip {2}
|
||||||
this.addAbility(new EquipAbility(
|
this.addAbility(new EquipAbility(
|
||||||
Outcome.AddAbility,
|
Outcome.AddAbility,
|
||||||
|
@ -91,6 +94,28 @@ public class KondasBanner extends CardImpl<KondasBanner> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class InfoEffect extends OneShotEffect<InfoEffect> {
|
||||||
|
|
||||||
|
public InfoEffect() {
|
||||||
|
super(Outcome.Benefit);
|
||||||
|
this.staticText = "{this} can be attached only to a legendary creature";
|
||||||
|
}
|
||||||
|
|
||||||
|
public InfoEffect(final InfoEffect effect) {
|
||||||
|
super(effect);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public InfoEffect copy() {
|
||||||
|
return new InfoEffect(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean apply(Game game, Ability source) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class KondasBannerTypeBoostEffect extends BoostAllEffect {
|
class KondasBannerTypeBoostEffect extends BoostAllEffect {
|
||||||
|
|
||||||
private static final String effectText = "Creatures that share a creature type with equipped creature get +1/+1";
|
private static final String effectText = "Creatures that share a creature type with equipped creature get +1/+1";
|
||||||
|
|
|
@ -70,7 +70,7 @@ public class SuturedGhoul extends CardImpl<SuturedGhoul> {
|
||||||
|
|
||||||
// Sutured Ghoul's power is equal to the total power of the exiled cards and its toughness is equal to their total toughness.
|
// Sutured Ghoul's power is equal to the total power of the exiled cards and its toughness is equal to their total toughness.
|
||||||
BoostSourceEffect effect = new BoostSourceEffect(new SuturedGhoulPowerCount(), new SuturedGhoulToughnessCount(), Duration.WhileOnBattlefield);
|
BoostSourceEffect effect = new BoostSourceEffect(new SuturedGhoulPowerCount(), new SuturedGhoulToughnessCount(), Duration.WhileOnBattlefield);
|
||||||
effect.setRule(staticText2);
|
effect.setText(staticText2);
|
||||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
|
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -97,6 +97,7 @@ class OozeToken extends Token {
|
||||||
|
|
||||||
public OozeToken() {
|
public OozeToken() {
|
||||||
super("Ooze", "X/X green ooze creature token");
|
super("Ooze", "X/X green ooze creature token");
|
||||||
|
|
||||||
cardType.add(CardType.CREATURE);
|
cardType.add(CardType.CREATURE);
|
||||||
color.setGreen(true);
|
color.setGreen(true);
|
||||||
subtype.add("Ooze");
|
subtype.add("Ooze");
|
||||||
|
|
|
@ -36,6 +36,7 @@ import mage.MageInt;
|
||||||
import mage.abilities.common.SimpleStaticAbility;
|
import mage.abilities.common.SimpleStaticAbility;
|
||||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||||
import mage.abilities.dynamicvalue.common.StaticValue;
|
import mage.abilities.dynamicvalue.common.StaticValue;
|
||||||
|
import mage.abilities.effects.Effect;
|
||||||
import mage.abilities.effects.common.continious.BoostSourceEffect;
|
import mage.abilities.effects.common.continious.BoostSourceEffect;
|
||||||
import mage.abilities.keyword.FirstStrikeAbility;
|
import mage.abilities.keyword.FirstStrikeAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
|
@ -58,8 +59,13 @@ public class SoulsurgeElemental extends CardImpl<SoulsurgeElemental> {
|
||||||
this.power = new MageInt(0);
|
this.power = new MageInt(0);
|
||||||
this.toughness = new MageInt(1);
|
this.toughness = new MageInt(1);
|
||||||
|
|
||||||
|
// First strike
|
||||||
this.addAbility(FirstStrikeAbility.getInstance());
|
this.addAbility(FirstStrikeAbility.getInstance());
|
||||||
this.addAbility(new SimpleStaticAbility(Zone.ALL, new BoostSourceEffect(new PermanentsOnBattlefieldCount(new FilterControlledCreaturePermanent()), new StaticValue(0), Duration.EndOfGame)));
|
|
||||||
|
// Soulsurge Elemental's power is equal to the number of creatures you control.
|
||||||
|
Effect effect = new BoostSourceEffect(new PermanentsOnBattlefieldCount(new FilterControlledCreaturePermanent()), new StaticValue(0), Duration.EndOfGame);
|
||||||
|
effect.setText("{this}'s power is equal to the number of creatures you control");
|
||||||
|
this.addAbility(new SimpleStaticAbility(Zone.ALL, effect));
|
||||||
}
|
}
|
||||||
|
|
||||||
public SoulsurgeElemental(final SoulsurgeElemental card) {
|
public SoulsurgeElemental(final SoulsurgeElemental card) {
|
||||||
|
|
|
@ -100,10 +100,6 @@ public class BoostSourceEffect extends ContinuousEffectImpl<BoostSourceEffect> i
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRule(String value) {
|
|
||||||
staticText = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setText() {
|
private void setText() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("{this} gets ");
|
sb.append("{this} gets ");
|
||||||
|
|
Loading…
Reference in a new issue