mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 12:31:59 -08:00
Fixed NPE errors for some cards (#5471)
This commit is contained in:
parent
6e2b6aa7a3
commit
e9f9b05141
12 changed files with 69 additions and 142 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.abilities.keyword;
|
||||
|
||||
import mage.MageObjectReference;
|
||||
|
|
@ -84,7 +83,11 @@ class CascadeEffect extends OneShotEffect {
|
|||
return false;
|
||||
}
|
||||
ExileZone exile = game.getExile().createZone(source.getSourceId(), controller.getName() + " Cascade");
|
||||
int sourceCost = game.getCard(source.getSourceId()).getConvertedManaCost();
|
||||
card = game.getCard(source.getSourceId());
|
||||
if (card == null) {
|
||||
return false;
|
||||
}
|
||||
int sourceCost = card.getConvertedManaCost();
|
||||
do {
|
||||
card = controller.getLibrary().getFromTop(game);
|
||||
if (card == null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue