mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
* Fixed that the name of a face down spell on the stack was shown in the game log if the spell was targeted by another stack object.
This commit is contained in:
parent
a0f80b785c
commit
0157bf0494
2 changed files with 9 additions and 1 deletions
|
|
@ -43,6 +43,7 @@ import mage.game.permanent.Permanent;
|
|||
import mage.game.stack.Spell;
|
||||
import mage.game.stack.StackObject;
|
||||
import mage.target.TargetImpl;
|
||||
import mage.util.GameLog;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -254,7 +255,11 @@ public class TargetSpellOrPermanent extends TargetImpl {
|
|||
sb.append(permanent.getLogName()).append(" ");
|
||||
} else {
|
||||
Spell spell = game.getStack().getSpell(targetId);
|
||||
sb.append(spell.getLogName()).append(" ");
|
||||
if (spell.isFaceDown(game)) {
|
||||
sb.append(GameLog.getNeutralColoredText("face down spell"));
|
||||
} else {
|
||||
sb.append(spell.getLogName()).append(" ");
|
||||
}
|
||||
}
|
||||
}
|
||||
return sb.toString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue