mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
Fixed bug of enters the battlefield handling for tokens.
This commit is contained in:
parent
122c225248
commit
3a51849bd8
1 changed files with 3 additions and 0 deletions
|
@ -117,7 +117,10 @@ public class Token extends MageObjectImpl<Token> {
|
|||
game.getState().addCard(permanent);
|
||||
game.addPermanent(permanent);
|
||||
this.lastAddedTokenId = permanent.getId();
|
||||
game.setScopeRelevant(true);
|
||||
game.applyEffects();
|
||||
permanent.entersBattlefield(sourceId, game, Zone.OUTSIDE, true);
|
||||
game.setScopeRelevant(false);
|
||||
game.applyEffects();
|
||||
game.fireEvent(new ZoneChangeEvent(permanent, controllerId, Zone.OUTSIDE, Zone.BATTLEFIELD));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue