* Selvala, Heart of the Wilds - FIxed tool tip text.

This commit is contained in:
LevelX2 2016-09-21 22:42:09 +02:00
parent 11bb392c71
commit f428d5533f

View file

@ -39,7 +39,6 @@ import mage.abilities.effects.OneShotEffect;
import mage.abilities.mana.DynamicManaAbility;
import mage.cards.CardImpl;
import mage.constants.*;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterControlledCreaturePermanent;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.ObjectSourcePlayer;
@ -48,7 +47,6 @@ import mage.filter.predicate.permanent.AnotherPredicate;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.players.Player;
import mage.target.targetpointer.FixedTarget;
/**
*
@ -56,8 +54,8 @@ import mage.target.targetpointer.FixedTarget;
*/
public class SelvalaHeartOfTheWilds extends CardImpl {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("another creature");
static {
filter.add(new AnotherPredicate());
filter.add(new GreatestPowerPredicate());
@ -75,12 +73,11 @@ public class SelvalaHeartOfTheWilds extends CardImpl {
this.toughness = new MageInt(3);
// Whenever another creature enters the battlefield, its controller may draw a card if its power is greater than each other creature's power.
this.addAbility(new EntersBattlefieldAllTriggeredAbility(Zone.BATTLEFIELD, new SelvalaHeartOfTheWildsEffect(), filter, false, SetTargetPointer.PERMANENT, rule));
// {G}, {T}: Add X mana in any combination of colors to your mana pool, where X is the greatest power among creatures you control.
this.addAbility(new DynamicManaAbility(new Mana(0, 0, 0, 0, 0, 0, 1, 0), new GreatestPowerYouControlValue(), new TapSourceCost(),
"Add X mana in any combination of colors to your mana pool, where X is the number of creatures with defender you control."));
"Add X mana in any combination of colors to your mana pool, where X is the greatest power among creatures you control."));
}
public SelvalaHeartOfTheWilds(final SelvalaHeartOfTheWilds card) {
@ -125,7 +122,6 @@ class SelvalaHeartOfTheWildsEffect extends OneShotEffect {
}
}
class GreatestPowerPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
@Override
@ -144,6 +140,7 @@ class GreatestPowerPredicate implements ObjectSourcePlayerPredicate<ObjectSource
}
return true;
}
@Override
public String toString() {
return "Greatest Power";