* 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:
LevelX2 2015-12-14 22:03:00 +01:00
parent a0f80b785c
commit 0157bf0494
2 changed files with 9 additions and 1 deletions

View file

@ -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();