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;
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user