mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Fix Jeleva ETB without being cast
This commit is contained in:
@@ -1083,7 +1083,13 @@ public class CardFactoryUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (sq[0].equals("FirstSpellTotalManaSpent")) {
|
if (sq[0].equals("FirstSpellTotalManaSpent")) {
|
||||||
return doXMath(c.getFirstSpellAbility().getTotalManaSpent(), m, c);
|
try{
|
||||||
|
return doXMath(c.getFirstSpellAbility().getTotalManaSpent(), m, c);
|
||||||
|
} catch (NullPointerException e) {
|
||||||
|
// This spell was not cast
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (sq[0].equals("StormCount")) {
|
if (sq[0].equals("StormCount")) {
|
||||||
return doXMath(game.getStack().getSpellsCastThisTurn().size() - 1, m, c);
|
return doXMath(game.getStack().getSpellsCastThisTurn().size() - 1, m, c);
|
||||||
|
|||||||
Reference in New Issue
Block a user