performance: added day/night performance test for transform ability (disabled by default, see DayNightTest, related to #11285), added day/night rules ref

This commit is contained in:
Oleg Agafonov 2023-11-07 01:25:15 +04:00
parent 70c79fd6a6
commit d6c858ecaf
4 changed files with 68 additions and 0 deletions

View file

@ -57,6 +57,9 @@ class NightboundEffect extends ContinuousEffectImpl {
@Override
public boolean apply(Game game, Ability source) {
if (!game.hasDayNight()) {
// 702.145f
// Any time a player controls a permanent that is back face up with nightbound and its day,
// that player transforms that permanent. This happens immediately and isnt a state-based action.
game.setDaytime(false);
}
return true;