mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
Fixed that transformed event was triggerd while the transforming was not applied yet (e.g. Cult of the Waxing Moon - fixes #1687).
This commit is contained in:
parent
705daab22f
commit
8780a6101a
2 changed files with 14 additions and 11 deletions
|
|
@ -512,7 +512,8 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
|
|||
if (canTransform) {
|
||||
if (!replaceEvent(EventType.TRANSFORM, game)) {
|
||||
setTransformed(!transformed);
|
||||
fireEvent(EventType.TRANSFORMED, game);
|
||||
game.applyEffects();
|
||||
game.addSimultaneousEvent(GameEvent.getEvent(EventType.TRANSFORMED, getId(), getControllerId()));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue