mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 05:52:06 -08:00
* 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:
parent
f340ed29d0
commit
47af2cab75
4 changed files with 57 additions and 39 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue