* Mirror Mockery - Fixed that the triggered ability on the stack did not resolve if Mirror Mockery had left battlefield meanwhile.

This commit is contained in:
LevelX2 2015-04-27 08:24:14 +02:00
parent 7af6d76f02
commit 890ef2e151
2 changed files with 3 additions and 3 deletions

View file

@ -137,7 +137,7 @@ class IcefallRegentEffect extends ContinuousRuleModifyingEffectImpl {
// event will happen before this effect is applied ever) // event will happen before this effect is applied ever)
Permanent sourcePermanent = game.getPermanent(source.getSourceId()); Permanent sourcePermanent = game.getPermanent(source.getSourceId());
if (sourcePermanent == null || !sourcePermanent.getControllerId().equals(source.getControllerId())) { if (sourcePermanent == null || !sourcePermanent.getControllerId().equals(source.getControllerId())) {
this.used = true; discard();
return false; return false;
} }
if (event.getType() == GameEvent.EventType.LOST_CONTROL) { if (event.getType() == GameEvent.EventType.LOST_CONTROL) {

View file

@ -99,11 +99,11 @@ class MirrorMockeryEffect extends OneShotEffect {
@Override @Override
public boolean apply(Game game, Ability source) { public boolean apply(Game game, Ability source) {
Permanent enchantment = game.getPermanent(source.getSourceId()); Permanent enchantment = game.getPermanentOrLKIBattlefield(source.getSourceId());
if (enchantment == null || enchantment.getAttachedTo() == null) { if (enchantment == null || enchantment.getAttachedTo() == null) {
return false; return false;
} }
Permanent enchanted = game.getPermanent(enchantment.getAttachedTo()); Permanent enchanted = game.getPermanentOrLKIBattlefield(enchantment.getAttachedTo());
if (enchanted != null) { if (enchanted != null) {
EmptyToken token = new EmptyToken(); EmptyToken token = new EmptyToken();
CardUtil.copyTo(token).from(enchanted); CardUtil.copyTo(token).from(enchanted);