mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user