Prevent Gorilla Shaman refunding mana after there are no more remaining targets

This commit is contained in:
drdev
2014-09-14 16:55:10 +00:00
parent 4e5b5e4d6c
commit 1d40924d0a
2 changed files with 8 additions and 1 deletions

View File

@@ -231,8 +231,9 @@ public class ManaPool implements Iterable<Mana> {
paidAbs.add(saPayment); // assumes some part on the mana produced by the ability will get used
for (final Mana mana : abManaPart.getLastManaProduced()) {
if( tryPayCostWithMana(saPaidFor, manaCost, mana) )
if (tryPayCostWithMana(saPaidFor, manaCost, mana)) {
saPaidFor.getPayingMana().add(0, mana);
}
}
}