* Added 4 cards.

This commit is contained in:
LevelX2 2014-08-11 13:56:54 +02:00
parent 97ca70318b
commit 057f3aed07
8 changed files with 454 additions and 3 deletions

View file

@ -87,7 +87,7 @@ public class BeginningOfPreCombatMainTriggeredAbility extends TriggeredAbilityIm
case OPPONENT:
return "At the beginning of each opponent's precombat main phase, " + generateZoneString() + getEffects().getText(modes.getMode());
case ANY:
return "At the beginning of each precombat main phase, " + generateZoneString() + getEffects().getText(modes.getMode());
return "At the beginning of each player's precombat main phase, " + generateZoneString() + getEffects().getText(modes.getMode());
}
return "";
}

View file

@ -0,0 +1,50 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package mage.abilities.effects.common;
import mage.Mana;
import mage.abilities.Ability;
import mage.abilities.effects.OneShotEffect;
import mage.constants.Outcome;
import mage.game.Game;
import mage.players.Player;
/**
*
* @author LevelX2
*/
public class AddManaToManaPoolEffect extends OneShotEffect {
protected Mana mana;
public AddManaToManaPoolEffect(Mana mana) {
super(Outcome.PutManaInPool);
this.mana = mana;
this.staticText = "add " + mana.toString() + " to that player's mana pool";
}
public AddManaToManaPoolEffect(final AddManaToManaPoolEffect effect) {
super(effect);
this.mana = effect.mana;
}
@Override
public AddManaToManaPoolEffect copy() {
return new AddManaToManaPoolEffect(this);
}
@Override
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(getTargetPointer().getFirst(game, source));
if (player != null) {
player.getManaPool().addMana(mana, game, source);
return true;
}
return false;
}
}