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; continue;
} }
used.add(mability); used.add(mability);
for(String c:getManaParts(mability)) { if(null != getManaParts(mability)) {
if(c.equals("")) continue; // some sort of glitch for(String c:getManaParts(mability)) {
m = subtractOne(m, c); if(c.equals("")) continue; // some sort of glitch
m = subtractOne(m, c);
}
} }
} }
return m; return m;