fixed Sea God's Revenge being able to target non-opposing creatures (fixes #5304)

This commit is contained in:
Evan Kranzler 2018-09-08 18:00:10 -04:00
parent b4bd056714
commit a464333761

View file

@ -1,4 +1,3 @@
package mage.cards.s; package mage.cards.s;
import java.util.UUID; import java.util.UUID;
@ -7,7 +6,7 @@ import mage.abilities.effects.keyword.ScryEffect;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.cards.CardSetInfo; import mage.cards.CardSetInfo;
import mage.constants.CardType; import mage.constants.CardType;
import mage.target.common.TargetCreaturePermanent; import mage.target.common.TargetOpponentsCreaturePermanent;
/** /**
* *
@ -18,10 +17,9 @@ public final class SeaGodsRevenge extends CardImpl {
public SeaGodsRevenge(UUID ownerId, CardSetInfo setInfo) { public SeaGodsRevenge(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{5}{U}"); super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{5}{U}");
// Return up to three target creatures to their owners' hands. Scry 1. // Return up to three target creatures to their owners' hands. Scry 1.
this.getSpellAbility().addEffect(new ReturnToHandTargetEffect()); this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
this.getSpellAbility().addTarget(new TargetCreaturePermanent(0,3)); this.getSpellAbility().addTarget(new TargetOpponentsCreaturePermanent(0, 3));
this.getSpellAbility().addEffect(new ScryEffect(1)); this.getSpellAbility().addEffect(new ScryEffect(1));
} }