mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 23:12:10 -08:00
* Bruna, Light of Alabester - Fixed that the auras could not be moved to Bruno if it had shroud. (fixes #3484).
This commit is contained in:
parent
77ece1c496
commit
dd1eff68fe
2 changed files with 79 additions and 3 deletions
|
|
@ -131,11 +131,12 @@ class BrunaLightOfAlabasterEffect extends OneShotEffect {
|
|||
&& countBattlefield > 0
|
||||
&& controller.chooseUse(Outcome.Benefit, "Attach an Aura from the battlefield?", source, game)) {
|
||||
Target targetAura = new TargetPermanent(filterAura);
|
||||
targetAura.setNotTarget(true);
|
||||
if (controller.choose(Outcome.Benefit, targetAura, source.getSourceId(), game)) {
|
||||
Permanent aura = game.getPermanent(targetAura.getFirstTarget());
|
||||
if (aura != null) {
|
||||
Target target = aura.getSpellAbility().getTargets().get(0);
|
||||
if (target != null && target.canTarget(source.getSourceId(), source, game)) {
|
||||
if (target != null) {
|
||||
fromBattlefield.add(aura);
|
||||
filterAura.add(Predicates.not(new CardIdPredicate(aura.getId())));
|
||||
}
|
||||
|
|
@ -153,7 +154,7 @@ class BrunaLightOfAlabasterEffect extends OneShotEffect {
|
|||
Card aura = game.getCard(targetAura.getFirstTarget());
|
||||
if (aura != null) {
|
||||
Target target = aura.getSpellAbility().getTargets().get(0);
|
||||
if (target != null && target.canTarget(source.getSourceId(), source, game)) {
|
||||
if (target != null) {
|
||||
fromHandGraveyard.add(aura);
|
||||
filterAuraCard.add(Predicates.not(new CardIdPredicate(aura.getId())));
|
||||
}
|
||||
|
|
@ -171,7 +172,7 @@ class BrunaLightOfAlabasterEffect extends OneShotEffect {
|
|||
Card aura = game.getCard(targetAura.getFirstTarget());
|
||||
if (aura != null) {
|
||||
Target target = aura.getSpellAbility().getTargets().get(0);
|
||||
if (target != null && target.canTarget(source.getSourceId(), source, game)) {
|
||||
if (target != null) {
|
||||
fromHandGraveyard.add(aura);
|
||||
filterAuraCard.add(Predicates.not(new CardIdPredicate(aura.getId())));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue