forked from External/mage
* Fixed a problem that conditional mana could not be correctly used with AsThoughEffects (fixes #6880).
This commit is contained in:
parent
202e25208e
commit
85d18899b1
4 changed files with 117 additions and 16 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.players;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
@ -205,6 +204,21 @@ public class ManaPoolItem implements Serializable {
|
|||
} else if (colorless > 0) {
|
||||
return ManaType.COLORLESS;
|
||||
}
|
||||
if (conditionalMana != null) {
|
||||
if (conditionalMana.getBlack() > 0) {
|
||||
return ManaType.BLACK;
|
||||
} else if (conditionalMana.getBlue() > 0) {
|
||||
return ManaType.BLUE;
|
||||
} else if (conditionalMana.getGreen() > 0) {
|
||||
return ManaType.GREEN;
|
||||
} else if (conditionalMana.getRed() > 0) {
|
||||
return ManaType.RED;
|
||||
} else if (conditionalMana.getWhite() > 0) {
|
||||
return ManaType.WHITE;
|
||||
} else if (conditionalMana.getColorless() > 0) {
|
||||
return ManaType.COLORLESS;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue