fix NullPointerException when Gaea's Cradle is tapped for mana with no creatures that you control. (and presumably fixes other cards like this in given situations.)

This commit is contained in:
jendave
2011-08-06 04:32:10 +00:00
parent 89bc95d756
commit bd918d7007

View File

@@ -325,9 +325,11 @@ public class ManaPool extends Card {
continue;
}
used.add(mability);
for(String c:getManaParts(mability)) {
if(c.equals("")) continue; // some sort of glitch
m = subtractOne(m, c);
if(null != getManaParts(mability)) {
for(String c:getManaParts(mability)) {
if(c.equals("")) continue; // some sort of glitch
m = subtractOne(m, c);
}
}
}
return m;