mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
fix Morgue Burst
This commit is contained in:
parent
e9c6e448c4
commit
a55b31124a
2 changed files with 3 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue