Maxmtg
2013-04-10 04:04:55 +00:00
parent 0f6964be04
commit b3dda493b4

View File

@@ -336,6 +336,8 @@ public class ComputerUtilCost {
* @return a boolean. * @return a boolean.
*/ */
public static boolean canPayCost(final SpellAbility sa, final Player player) { public static boolean canPayCost(final SpellAbility sa, final Player player) {
sa.setActivatingPlayer(player); // complaints on NPE had came before this line was added.
// Check for stuff like Nether Void // Check for stuff like Nether Void
int extraManaNeeded = 0; int extraManaNeeded = 0;
if (sa instanceof Spell) { if (sa instanceof Spell) {