mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
kill duplicate
This commit is contained in:
@@ -185,15 +185,7 @@ public abstract class InputPayMana extends InputSyncronizedBase {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
HumanPlay.playSpellAbility(chosen.getActivatingPlayer(), chosen);
|
HumanPlay.playSpellAbility(chosen.getActivatingPlayer(), chosen);
|
||||||
|
player.getManaPool().payManaFromAbility(saPaidFor, InputPayMana.this.manaCost, chosen);
|
||||||
// Mana restriction must be checked before this method is called
|
|
||||||
final List<SpellAbility> 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);
|
|
||||||
}
|
|
||||||
|
|
||||||
onManaAbilityPaid();
|
onManaAbilityPaid();
|
||||||
onStateChanged();
|
onStateChanged();
|
||||||
|
|||||||
Reference in New Issue
Block a user