mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
* Deicide - Fixed possible NPE bug.
This commit is contained in:
parent
c70828bda0
commit
6669d1780a
1 changed files with 2 additions and 3 deletions
|
@ -88,10 +88,9 @@ class DeicideExileEffect extends SearchTargetGraveyardHandLibraryForCardNameAndE
|
||||||
Permanent targetEnchantment = game.getPermanent(getTargetPointer().getFirst(game, source));
|
Permanent targetEnchantment = game.getPermanent(getTargetPointer().getFirst(game, source));
|
||||||
if (targetEnchantment != null) {
|
if (targetEnchantment != null) {
|
||||||
controller.moveCardToExileWithInfo(targetEnchantment, null, null, source.getSourceId(), game, Zone.BATTLEFIELD);
|
controller.moveCardToExileWithInfo(targetEnchantment, null, null, source.getSourceId(), game, Zone.BATTLEFIELD);
|
||||||
Card exiledCard = game.getCard(targetEnchantment.getId());
|
if (targetEnchantment.hasSubtype("God")) {
|
||||||
if (exiledCard.hasSubtype("God")) {
|
|
||||||
Player enchantmentController = game.getPlayer(targetEnchantment.getControllerId());
|
Player enchantmentController = game.getPlayer(targetEnchantment.getControllerId());
|
||||||
return super.applySearchAndExile(game, source, exiledCard.getName(), enchantmentController.getId());
|
return super.applySearchAndExile(game, source, targetEnchantment.getName(), enchantmentController.getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue