mirror of
https://github.com/correl/mage.git
synced 2025-04-09 17:00:09 -09:00
* Obzedat, Ghost Council - Fixed possible null pointer exception.
This commit is contained in:
parent
f37761fbc1
commit
d30709e1b0
1 changed files with 3 additions and 5 deletions
|
@ -70,7 +70,6 @@ public class ObzedatGhostCouncil extends CardImpl {
|
|||
this.subtype.add("Advisor");
|
||||
this.supertype.add("Legendary");
|
||||
|
||||
|
||||
this.power = new MageInt(5);
|
||||
this.toughness = new MageInt(5);
|
||||
|
||||
|
@ -95,7 +94,6 @@ public class ObzedatGhostCouncil extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
class ObzedatGhostCouncilExileSourceEffect extends OneShotEffect {
|
||||
|
||||
public ObzedatGhostCouncilExileSourceEffect() {
|
||||
|
@ -180,7 +178,7 @@ class ObzedatGhostCouncilReturnEffect extends OneShotEffect {
|
|||
if (card != null) {
|
||||
ExileZone currentZone = game.getState().getExile().getExileZone(source.getSourceId());
|
||||
// return it only from the own exile zone
|
||||
if (currentZone.size() > 0) {
|
||||
if (currentZone != null && currentZone.size() > 0) {
|
||||
Player owner = game.getPlayer(card.getOwnerId());
|
||||
if (owner != null && owner.putOntoBattlefieldWithInfo(card, game, Zone.EXILED, source.getSourceId())) {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue