Merge branch 'assorted-fixes' into 'master'

- Indirect aura attachment: fix Sovereigns of Lost Alara not attaching Cartouches

See merge request core-developers/forge!164
This commit is contained in:
Hans Mackowiak
2018-01-31 06:01:00 +00:00

View File

@@ -1228,8 +1228,13 @@ public class ChangeZoneEffect extends SpellAbilityEffect {
final Game game = source.getGame(); final Game game = source.getGame();
final TargetRestrictions tgt = attachEff.getTargetRestrictions(); 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()); 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); return list.contains(target);
} }
} }