mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
* Deicide - Fixed a bug that subtype was taken from permanent instead from card in exile. So Deicide did not allow to search for other God cards as long as the Theros God was only an enchantment as he was exiled.
This commit is contained in:
parent
1a1fc09221
commit
3d292c3495
1 changed files with 8 additions and 3 deletions
|
@ -87,10 +87,15 @@ class DeicideExileEffect extends SearchTargetGraveyardHandLibraryForCardNameAndE
|
||||||
if (controller != null && sourceCard != null) {
|
if (controller != null && sourceCard != null) {
|
||||||
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, "", source.getSourceId(), game, Zone.BATTLEFIELD);
|
||||||
if (targetEnchantment.hasSubtype("God")) {
|
// 4/26/2014
|
||||||
|
// Deicide looks at the card in exile, not the permanent that was exiled, to determine
|
||||||
|
// if it is a God. For each of the Gods in the Theros block, it won’t matter what your
|
||||||
|
// devotion to its color(s) was. The card is a God card when not on the battlefield.
|
||||||
|
Card cardInExile = game.getExile().getCard(targetEnchantment.getId(), game);
|
||||||
|
if (cardInExile != null && cardInExile.hasSubtype("God")) {
|
||||||
Player enchantmentController = game.getPlayer(targetEnchantment.getControllerId());
|
Player enchantmentController = game.getPlayer(targetEnchantment.getControllerId());
|
||||||
return super.applySearchAndExile(game, source, targetEnchantment.getName(), enchantmentController.getId());
|
return super.applySearchAndExile(game, source, cardInExile.getName(), enchantmentController.getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue