forked from External/mage
add null check
This commit is contained in:
parent
d7e68cf932
commit
d5003a6f8f
2 changed files with 2 additions and 2 deletions
|
|
@ -115,7 +115,7 @@ class CipherStoreEffect extends OneShotEffect {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
Card cipherCard = game.getCard(cipherCardId);
|
||||
if (cipherCard != null) {
|
||||
if (cipherCard != null && controller != null) {
|
||||
Card copyCard = game.copyCard(cipherCard, source, controller.getId());
|
||||
SpellAbility ability = copyCard.getSpellAbility();
|
||||
// remove the cipher effect from the copy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue