mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Fixed a NPE of Meld effect.
This commit is contained in:
parent
d55dd515f3
commit
a2b8891188
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ public class MeldEffect extends OneShotEffect {
|
|||
// Create the meld card and move it to the battlefield.
|
||||
Card sourceCard = game.getExile().getCard(sourceId, game);
|
||||
Card meldWithCard = game.getExile().getCard(meldWithId, game);
|
||||
if (!sourceCard.isCopy() && !meldWithCard.isCopy()) {
|
||||
if (sourceCard != null && !sourceCard.isCopy() && meldWithCard != null && !meldWithCard.isCopy()) {
|
||||
meldCard.setOwnerId(controller.getId());
|
||||
meldCard.setTopHalfCard(meldWithCard, game);
|
||||
meldCard.setBottomHalfCard(sourceCard, game);
|
||||
|
|
Loading…
Reference in a new issue