1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-13 01:01:11 -09:00

* Obzedat, Ghost Council - Fixed possible null pointer exception.

This commit is contained in:
LevelX2 2015-06-26 18:33:16 +02:00
parent f37761fbc1
commit d30709e1b0

View file

@ -70,7 +70,6 @@ public class ObzedatGhostCouncil extends CardImpl {
this.subtype.add("Advisor"); this.subtype.add("Advisor");
this.supertype.add("Legendary"); this.supertype.add("Legendary");
this.power = new MageInt(5); this.power = new MageInt(5);
this.toughness = new MageInt(5); this.toughness = new MageInt(5);
@ -95,7 +94,6 @@ public class ObzedatGhostCouncil extends CardImpl {
} }
} }
class ObzedatGhostCouncilExileSourceEffect extends OneShotEffect { class ObzedatGhostCouncilExileSourceEffect extends OneShotEffect {
public ObzedatGhostCouncilExileSourceEffect() { public ObzedatGhostCouncilExileSourceEffect() {
@ -180,7 +178,7 @@ class ObzedatGhostCouncilReturnEffect extends OneShotEffect {
if (card != null) { if (card != null) {
ExileZone currentZone = game.getState().getExile().getExileZone(source.getSourceId()); ExileZone currentZone = game.getState().getExile().getExileZone(source.getSourceId());
// return it only from the own exile zone // return it only from the own exile zone
if (currentZone.size() > 0) { if (currentZone != null && currentZone.size() > 0) {
Player owner = game.getPlayer(card.getOwnerId()); Player owner = game.getPlayer(card.getOwnerId());
if (owner != null && owner.putOntoBattlefieldWithInfo(card, game, Zone.EXILED, source.getSourceId())) { if (owner != null && owner.putOntoBattlefieldWithInfo(card, game, Zone.EXILED, source.getSourceId())) {
return true; return true;