[MKM] Implement Perimeter Enforcer & Projektor Inspector (#11719)

This commit is contained in:
Susucre 2024-04-05 23:55:18 +02:00 committed by GitHub
parent c03742941a
commit 5dfe480a5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 179 additions and 0 deletions

View file

@ -605,6 +605,14 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
ability.setRuleVisible(true);
}
}
// The current face down implementation is just setting a boolean, so any trigger checking for a
// permanent property once being turned face up is not seeing the right face up data.
// For instance triggers looking for specific subtypes being turned face up (Detectives in MKM set)
// are broken without that processAction call.
// This is somewhat a band-aid on the special action nature of turning a permanent face up.
// 708.8. As a face-down permanent is turned face up, its copiable values revert to its normal copiable values.
// Any effects that have been applied to the face-down permanent still apply to the face-up permanent.
game.getState().processAction(game);
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.TURNED_FACE_UP, getId(), source, playerId));
return true;
}