Tokens rework: fixed morph support, fixed test (related to #10139)

This commit is contained in:
Oleg Agafonov 2023-05-01 19:41:25 +04:00
parent 94819ff91c
commit 3986196aa4
6 changed files with 110 additions and 66 deletions

View file

@ -1185,9 +1185,9 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
@Override
public boolean entersBattlefield(Ability source, Game game, Zone fromZone, boolean fireEvent) {
controlledFromStartOfControllerTurn = false;
if (this.isFaceDown(game)) {
if (this.isFaceDown(game)) { // ?? add morphed/manifested here ??
// remove some attributes here, because first apply effects comes later otherwise abilities (e.g. color related) will unintended trigger
MorphAbility.setPermanentToFaceDownCreature(this, game);
MorphAbility.setPermanentToFaceDownCreature(this, this, game);
}
if (game.replaceEvent(new EntersTheBattlefieldEvent(this, source, getControllerId(), fromZone, EnterEventType.SELF))) {