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