mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
P/T changing effects from static abilities are applied now before enters the battlefield event triggers. This fixes that Kird Ape or Tarmogoyf P/T wasn't calculated before evoke checked P/T.
This commit is contained in:
parent
98a77e93f2
commit
d7cab00905
3 changed files with 6 additions and 3 deletions
|
|
@ -205,6 +205,7 @@ public class PermanentCard extends PermanentImpl<PermanentCard> {
|
|||
game.fireEvent(event);
|
||||
if (event.getFromZone().equals(Zone.BATTLEFIELD)) {
|
||||
game.resetForSourceId(getId());
|
||||
game.applyEffects(); // LevelX2: needed to execute isInactive for of custom duration copy effect if source returns directly (e.g. cloudshifted clone)
|
||||
}
|
||||
return game.getState().getZone(objectId) == toZone;
|
||||
}
|
||||
|
|
@ -235,6 +236,7 @@ public class PermanentCard extends PermanentImpl<PermanentCard> {
|
|||
game.fireEvent(event);
|
||||
if (event.getFromZone().equals(Zone.BATTLEFIELD)) {
|
||||
game.resetForSourceId(getId());
|
||||
game.applyEffects();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue