From 3d360d216bb7f5ebf59c41e6d032292b65901dd9 Mon Sep 17 00:00:00 2001 From: Maxmtg Date: Sun, 16 Feb 2014 23:21:35 +0000 Subject: [PATCH] kill duplicate --- .../src/main/java/forge/gui/input/InputPayMana.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/forge-gui/src/main/java/forge/gui/input/InputPayMana.java b/forge-gui/src/main/java/forge/gui/input/InputPayMana.java index b36424db45f..f8eed154de7 100644 --- a/forge-gui/src/main/java/forge/gui/input/InputPayMana.java +++ b/forge-gui/src/main/java/forge/gui/input/InputPayMana.java @@ -185,16 +185,8 @@ public abstract class InputPayMana extends InputSyncronizedBase { @Override public void run() { HumanPlay.playSpellAbility(chosen.getActivatingPlayer(), chosen); - - // Mana restriction must be checked before this method is called - final List paidAbs = saPaidFor.getPayingManaAbilities(); - AbilityManaPart abManaPart = chosen.getManaPartRecursive(); - - paidAbs.add(chosen); // assumes some part on the mana produced by the ability will get used - for (final Mana mana : abManaPart.getLastManaProduced()) { - player.getManaPool().tryPayCostWithMana(saPaidFor, InputPayMana.this.manaCost, mana); - } - + player.getManaPool().payManaFromAbility(saPaidFor, InputPayMana.this.manaCost, chosen); + onManaAbilityPaid(); onStateChanged(); }