Fixed bug in ManaPoolView

This commit is contained in:
magenoxx 2012-05-20 14:08:31 +04:00
parent 61f5a6bf4a
commit 5a88f2750b

View file

@ -28,12 +28,11 @@
package mage.view;
import java.io.Serializable;
import java.util.concurrent.locks.Condition;
import mage.ConditionalMana;
import mage.players.ManaPool;
import java.io.Serializable;
/**
*
* @author BetaSteward_at_googlemail.com
@ -56,12 +55,12 @@ public class ManaPoolView implements Serializable {
this.black = pool.getBlack();
this.colorless = pool.getColorless();
for (ConditionalMana mana : pool.getConditionalMana()) {
this.red = mana.getRed();
this.green = mana.getGreen();
this.blue = mana.getBlue();
this.white = mana.getWhite();
this.black = mana.getBlack();
this.colorless = mana.getColorless();
this.red += mana.getRed();
this.green += mana.getGreen();
this.blue += mana.getBlue();
this.white += mana.getWhite();
this.black += mana.getBlack();
this.colorless += mana.getColorless();
}
}