mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* 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:
parent
7af6d76f02
commit
890ef2e151
2 changed files with 3 additions and 3 deletions
|
@ -137,7 +137,7 @@ class IcefallRegentEffect extends ContinuousRuleModifyingEffectImpl {
|
|||
// event will happen before this effect is applied ever)
|
||||
Permanent sourcePermanent = game.getPermanent(source.getSourceId());
|
||||
if (sourcePermanent == null || !sourcePermanent.getControllerId().equals(source.getControllerId())) {
|
||||
this.used = true;
|
||||
discard();
|
||||
return false;
|
||||
}
|
||||
if (event.getType() == GameEvent.EventType.LOST_CONTROL) {
|
||||
|
|
|
@ -99,11 +99,11 @@ class MirrorMockeryEffect extends OneShotEffect {
|
|||
|
||||
@Override
|
||||
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) {
|
||||
return false;
|
||||
}
|
||||
Permanent enchanted = game.getPermanent(enchantment.getAttachedTo());
|
||||
Permanent enchanted = game.getPermanentOrLKIBattlefield(enchantment.getAttachedTo());
|
||||
if (enchanted != null) {
|
||||
EmptyToken token = new EmptyToken();
|
||||
CardUtil.copyTo(token).from(enchanted);
|
||||
|
|
Loading…
Reference in a new issue