mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
Fixed the transform message shown in the game log.
This commit is contained in:
parent
ea53692b57
commit
c15719b36b
1 changed files with 5 additions and 5 deletions
|
@ -32,7 +32,7 @@ import mage.abilities.effects.OneShotEffect;
|
|||
import mage.constants.Outcome;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.game.permanent.PermanentToken;
|
||||
import mage.game.permanent.PermanentCard;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
/**
|
||||
|
@ -87,12 +87,12 @@ public class TransformSourceEffect extends OneShotEffect {
|
|||
if (!game.isSimulation()) {
|
||||
if (fromDayToNight) {
|
||||
if (permanent.getSecondCardFace() != null) {
|
||||
game.informPlayers(permanent.getIdName() + " transforms into " + permanent.getSecondCardFace().getIdName());
|
||||
} else {
|
||||
logger.error("Can't get SecondCardFace " + permanent.getName() + " Token: " + (permanent instanceof PermanentToken ? "Yes" : "No"));
|
||||
if (permanent instanceof PermanentCard) {
|
||||
game.informPlayers(((PermanentCard) permanent).getCard().getLogName() + " transforms into " + permanent.getSecondCardFace().getLogName());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
game.informPlayers(permanent.getSecondCardFace().getIdName() + " transforms into " + permanent.getIdName());
|
||||
game.informPlayers(permanent.getSecondCardFace().getLogName() + " transforms into " + permanent.getLogName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue