- Indirect aura attachment: check by aura controller if aura activating player check fails, fixes Sovereign of Lost Alara not being able to attach a Cartouche.

This commit is contained in:
Agetian
2018-01-31 08:00:26 +03:00
parent 1f10ba936a
commit 32facbbc74

View File

@@ -1228,8 +1228,13 @@ public class ChangeZoneEffect extends SpellAbilityEffect {
final Game game = source.getGame();
final TargetRestrictions tgt = attachEff.getTargetRestrictions();
Player attachEffCtrl = attachEff.getActivatingPlayer();
if (attachEffCtrl == null && attachEff.getHostCard() != null) {
attachEffCtrl = attachEff.getHostCard().getController();
}
CardCollectionView list = game.getCardsIn(tgt.getZone());
list = CardLists.getValidCards(list, tgt.getValidTgts(), attachEff.getActivatingPlayer(), source, attachEff);
list = CardLists.getValidCards(list, tgt.getValidTgts(), attachEffCtrl, source, attachEff);
return list.contains(target);
}
}