mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user