spjspj - Clean up code for Eye of the Storm (RAV)

This commit is contained in:
spjspj 2016-06-11 18:07:16 +10:00
parent ac910ca881
commit 4944d8ed69

View file

@ -158,7 +158,7 @@ class EyeOfTheStormEffect1 extends OneShotEffect {
card = game.getCard(uuid);
// Check if owner of card is still in game
if (game.getPlayer(card.getOwnerId()) != null) {
if (card != null && game.getPlayer(card.getOwnerId()) != null) {
if (card.isSplitCard()) {
copiedCards.add(((SplitCard) card).getLeftHalfCard());
copiedCards.add(((SplitCard) card).getRightHalfCard());