mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
* Fixed a bug that for mana abilities with multiple net mana entries wrongly no available mana was calculated (fixes #6617).
This commit is contained in:
parent
df42a4695d
commit
3c43e544b0
1 changed files with 3 additions and 2 deletions
|
@ -50,10 +50,11 @@ public class ManaOptions extends ArrayList<Mana> {
|
|||
} else {
|
||||
List<Mana> copy = copy();
|
||||
this.clear();
|
||||
boolean hasTapCost = hasTapCost(abilities.get(0));
|
||||
// boolean hasTapCost = hasTapCost(abilities.get(0)); // needed if checkTappedForManaReplacement is reactivated
|
||||
for (Mana netMana : netManas) {
|
||||
for (Mana mana : copy) {
|
||||
if (!hasTapCost /* || checkTappedForManaReplacement(abilities.get(0), game, netMana) */) { // Seems to produce endless iterations so deactivated for now: https://github.com/magefree/mage/issues/5023
|
||||
// checkTappedForManaReplacement seems in some situations to produce endless iterations so deactivated for now: https://github.com/magefree/mage/issues/5023
|
||||
if (true/* !hasTapCost || checkTappedForManaReplacement(abilities.get(0), game, netMana) */) {
|
||||
Mana newMana = new Mana();
|
||||
newMana.add(mana);
|
||||
newMana.add(netMana);
|
||||
|
|
Loading…
Reference in a new issue