- Added Soulbright Flamekin

This commit is contained in:
swordshine
2013-03-30 04:59:02 +00:00
parent 66afdd9c22
commit df82cd3fb4
3 changed files with 24 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ import forge.game.ai.ComputerUtilCard;
import forge.game.player.Player;
import forge.game.zone.ZoneType;
import forge.gui.GuiChoose;
import forge.gui.GuiDialog;
public class ManaEffect extends SpellAbilityEffect {
@@ -37,7 +38,13 @@ public class ManaEffect extends SpellAbilityEffect {
final List<Player> tgtPlayers = getTargetPlayers(sa);
final Target tgt = sa.getTarget();
final boolean optional = sa.hasParam("Optional");
if (optional) {
if (!GuiDialog.confirm(sa.getSourceCard(), "Do you want to add mana to your mana pool?")) {
return;
}
}
if (abMana.isComboMana()) {
for (Player p : tgtPlayers) {
int amount = sa.hasParam("Amount") ? AbilityUtils.calculateAmount(card, sa.getParam("Amount"), sa) : 1;