From a55b31124a12b6b656c6ea7fad59c089520e42e1 Mon Sep 17 00:00:00 2001 From: xenohedron Date: Mon, 2 Sep 2024 22:26:17 -0400 Subject: [PATCH] fix Morgue Burst --- Mage.Sets/src/mage/cards/c/ComboAttack.java | 2 +- Mage.Sets/src/mage/cards/m/MorgueBurst.java | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Mage.Sets/src/mage/cards/c/ComboAttack.java b/Mage.Sets/src/mage/cards/c/ComboAttack.java index ca764e3ae50..b426489e07b 100644 --- a/Mage.Sets/src/mage/cards/c/ComboAttack.java +++ b/Mage.Sets/src/mage/cards/c/ComboAttack.java @@ -60,7 +60,7 @@ class ComboAttackEffect extends OneShotEffect { } Permanent permanent1 = game.getPermanent(source.getTargets().get(0).getTargets().get(0)); Permanent permanent2 = game.getPermanent(source.getTargets().get(0).getTargets().get(1)); - Permanent permanent3 = game.getPermanent(source.getTargets().get(1).getTargets().get(0)); + Permanent permanent3 = game.getPermanent(source.getTargets().get(1).getFirstTarget()); if (permanent3 == null) { return false; } diff --git a/Mage.Sets/src/mage/cards/m/MorgueBurst.java b/Mage.Sets/src/mage/cards/m/MorgueBurst.java index efc20efe70d..4a0d9e2870e 100644 --- a/Mage.Sets/src/mage/cards/m/MorgueBurst.java +++ b/Mage.Sets/src/mage/cards/m/MorgueBurst.java @@ -1,7 +1,6 @@ package mage.cards.m; import mage.abilities.Ability; -import mage.abilities.Mode; import mage.abilities.effects.OneShotEffect; import mage.cards.Card; import mage.cards.CardImpl; @@ -66,12 +65,12 @@ class MorgueBurstEffect extends OneShotEffect { if (player != null) { player.moveCards(card, Zone.HAND, source, game); int damage = card.getPower().getValue(); - Permanent creature = game.getPermanent(source.getTargets().get(1).getTargets().get(0)); + Permanent creature = game.getPermanent(source.getTargets().get(1).getFirstTarget()); if (creature != null) { creature.damage(damage, source.getSourceId(), source, game, false, true); return true; } - Player targetPlayer = game.getPlayer(source.getTargets().get(1).getTargets().get(0)); + Player targetPlayer = game.getPlayer(source.getTargets().get(1).getFirstTarget()); if (targetPlayer != null) { targetPlayer.damage(damage, source.getSourceId(), source, game); return true;