* Delver Of Secrets - Fixed that the Reveal and to ask player did not happen during the resolving of the abilitys effect. Added info about transformation to log.

This commit is contained in:
LevelX2 2014-03-14 13:56:30 +01:00
parent f340ed29d0
commit 47af2cab75
4 changed files with 57 additions and 39 deletions

View file

@ -75,11 +75,16 @@ public class TransformSourceEffect extends OneShotEffect<TransformSourceEffect>
if (permanent.canTransform()) {
// check not to transform twice the same side
if (permanent.isTransformed() != fromDayToNight) {
if (withoutTrigger) {
if (withoutTrigger) {
permanent.setTransformed(fromDayToNight);
} else {
permanent.transform(game);
}
if (fromDayToNight) {
game.informPlayers(new StringBuilder(permanent.getName()).append(" transforms into ").append(permanent.getSecondCardFace().getName()).toString());
} else {
game.informPlayers(new StringBuilder(permanent.getSecondCardFace().getName()).append(" transforms into ").append(permanent.getName()).toString());
}
}
}
return true;