* Eternal Scourge - Fixed that also non card owner could cast from exile if controlled from other player before going to exile.

This commit is contained in:
LevelX2 2017-01-22 22:12:45 +01:00
parent fdd28cde4b
commit dad1a10eec
2 changed files with 4 additions and 3 deletions

View file

@ -53,7 +53,7 @@ import mage.game.events.GameEvent.EventType;
public class EternalScourge extends CardImpl {
public EternalScourge(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}");
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}");
this.subtype.add("Eldrazi");
this.subtype.add("Horror");
this.power = new MageInt(3);
@ -101,13 +101,14 @@ class EternalScourgePlayEffect extends AsThoughEffectImpl {
public boolean applies(UUID sourceId, Ability source, UUID affectedControllerId, Game game) {
if (sourceId.equals(source.getSourceId())) {
Card card = game.getCard(source.getSourceId());
if (card != null && card.getOwnerId().equals(source.getControllerId()) && game.getState().getZone(source.getSourceId()) == Zone.EXILED) {
if (card != null && card.getOwnerId().equals(affectedControllerId) && game.getState().getZone(source.getSourceId()) == Zone.EXILED) {
return true;
}
}
return false;
}
}
class EternalScourgeAbility extends TriggeredAbilityImpl {
public EternalScourgeAbility() {

View file

@ -71,7 +71,7 @@ class FatalPushEffect extends OneShotEffect {
FatalPushEffect() {
super(Outcome.DestroyPermanent);
this.staticText = "Destroy target creature if it has converted mana cost 2 or less.<br><i>Revolt</i> &mdash; Destroy that creature if it has converted mana cost 4 or less instead if a permanent you controlled left the battlefield this turn.";
this.staticText = "Destroy target creature if it has converted mana cost 2 or less.<br><i>Revolt</i> &mdash; Destroy that creature if it has converted mana cost 4 or less instead if a permanent you controlled left the battlefield this turn";
}
FatalPushEffect(final FatalPushEffect effect) {