mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* 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:
parent
fdd28cde4b
commit
dad1a10eec
2 changed files with 4 additions and 3 deletions
|
@ -101,13 +101,14 @@ class EternalScourgePlayEffect extends AsThoughEffectImpl {
|
||||||
public boolean applies(UUID sourceId, Ability source, UUID affectedControllerId, Game game) {
|
public boolean applies(UUID sourceId, Ability source, UUID affectedControllerId, Game game) {
|
||||||
if (sourceId.equals(source.getSourceId())) {
|
if (sourceId.equals(source.getSourceId())) {
|
||||||
Card card = game.getCard(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 true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class EternalScourgeAbility extends TriggeredAbilityImpl {
|
class EternalScourgeAbility extends TriggeredAbilityImpl {
|
||||||
|
|
||||||
public EternalScourgeAbility() {
|
public EternalScourgeAbility() {
|
||||||
|
|
|
@ -71,7 +71,7 @@ class FatalPushEffect extends OneShotEffect {
|
||||||
|
|
||||||
FatalPushEffect() {
|
FatalPushEffect() {
|
||||||
super(Outcome.DestroyPermanent);
|
super(Outcome.DestroyPermanent);
|
||||||
this.staticText = "Destroy target creature if it has converted mana cost 2 or less.<br><i>Revolt</i> — 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> — 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) {
|
FatalPushEffect(final FatalPushEffect effect) {
|
||||||
|
|
Loading…
Reference in a new issue