mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
- Fixed #8107
This commit is contained in:
parent
52fdc35632
commit
6fbec78835
1 changed files with 5 additions and 2 deletions
|
@ -106,8 +106,9 @@ class TergridGodOfFrightTriggeredAbility extends TriggeredAbilityImpl {
|
|||
if (!game.getOpponents(getControllerId()).contains(event.getPlayerId())) {
|
||||
return false;
|
||||
}
|
||||
// it must be in the graveyard IE: Rest in Peace effect
|
||||
switch (event.getType()) {
|
||||
case SACRIFICE_PERMANENT:
|
||||
case SACRIFICED_PERMANENT:
|
||||
Permanent permanent = game.getPermanentOrLKIBattlefield(event.getTargetId());
|
||||
if (permanent == null
|
||||
|| permanent instanceof PermanentToken
|
||||
|
@ -117,7 +118,9 @@ class TergridGodOfFrightTriggeredAbility extends TriggeredAbilityImpl {
|
|||
break;
|
||||
case DISCARDED_CARD:
|
||||
Card discardedCard = game.getCard(event.getTargetId());
|
||||
if (discardedCard == null || !discardedCard.isPermanent(game)) {
|
||||
if (discardedCard == null
|
||||
|| !discardedCard.isPermanent(game)
|
||||
|| game.getState().getZone(discardedCard.getId()) != Zone.GRAVEYARD) {
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue