* Selvala, Explorer Returned - Fixed a bug that mana and life for the controller was not provided.

This commit is contained in:
LevelX2 2016-09-30 11:34:27 +02:00
parent 0981d329e9
commit 03d7ea9ecd

View file

@ -86,7 +86,6 @@ class SelvalaExplorerReturnedEffect extends ManaEffect {
this.staticText = "Each player reveals the top card of his or her library. For each nonland card revealed this way, add {G} to your mana pool and you gain 1 life";
}
public SelvalaExplorerReturnedEffect(final SelvalaExplorerReturnedEffect effect) {
super(effect);
}
@ -101,7 +100,7 @@ class SelvalaExplorerReturnedEffect extends ManaEffect {
Player controller = game.getPlayer(source.getControllerId());
if (controller != null) {
Mana parley = getMana(game, source);
if (parley.getAny() > 0) {
if (parley.getGreen() > 0) {
controller.getManaPool().addMana(parley, game, source);
controller.gainLife(parley.getAny(), game);
}
@ -110,7 +109,6 @@ class SelvalaExplorerReturnedEffect extends ManaEffect {
return false;
}
@Override
public Mana getMana(Game game, Ability source) {
return Mana.GreenMana(ParleyCount.getInstance().calculate(game, source, this));