mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
Fix Tragic Arrogance letting you choose permanents of the wrong player.
This commit is contained in:
parent
b33819c810
commit
390cbd35fa
1 changed files with 3 additions and 3 deletions
|
|
@ -103,15 +103,15 @@ class TragicArroganceffect extends OneShotEffect {
|
||||||
|
|
||||||
FilterCreaturePermanent filterCreaturePermanent = new FilterCreaturePermanent("a creature of " + player.getName());
|
FilterCreaturePermanent filterCreaturePermanent = new FilterCreaturePermanent("a creature of " + player.getName());
|
||||||
filterCreaturePermanent.add(new ControllerIdPredicate(playerId));
|
filterCreaturePermanent.add(new ControllerIdPredicate(playerId));
|
||||||
Target target2 = new TargetPermanent(1, 1, new FilterCreaturePermanent(), true);
|
Target target2 = new TargetPermanent(1, 1, filterCreaturePermanent, true);
|
||||||
|
|
||||||
FilterEnchantmentPermanent filterEnchantmentPermanent = new FilterEnchantmentPermanent("an enchantment of " + player.getName());
|
FilterEnchantmentPermanent filterEnchantmentPermanent = new FilterEnchantmentPermanent("an enchantment of " + player.getName());
|
||||||
filterEnchantmentPermanent.add(new ControllerIdPredicate(playerId));
|
filterEnchantmentPermanent.add(new ControllerIdPredicate(playerId));
|
||||||
Target target3 = new TargetPermanent(1, 1, new FilterEnchantmentPermanent(), true);
|
Target target3 = new TargetPermanent(1, 1, filterEnchantmentPermanent, true);
|
||||||
|
|
||||||
FilterPlaneswalkerPermanent filterPlaneswalkerPermanent = new FilterPlaneswalkerPermanent("a planeswalker of " + player.getName());
|
FilterPlaneswalkerPermanent filterPlaneswalkerPermanent = new FilterPlaneswalkerPermanent("a planeswalker of " + player.getName());
|
||||||
filterPlaneswalkerPermanent.add(new ControllerIdPredicate(playerId));
|
filterPlaneswalkerPermanent.add(new ControllerIdPredicate(playerId));
|
||||||
Target target4 = new TargetPermanent(1, 1, new FilterPlaneswalkerPermanent(), true);
|
Target target4 = new TargetPermanent(1, 1, filterPlaneswalkerPermanent, true);
|
||||||
|
|
||||||
if (target1.canChoose(controller.getId(), game)) {
|
if (target1.canChoose(controller.getId(), game)) {
|
||||||
controller.chooseTarget(Outcome.Benefit, target1, source, game);
|
controller.chooseTarget(Outcome.Benefit, target1, source, game);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue