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

@ -51,6 +51,8 @@ class DayboundEffect extends ContinuousEffectImpl {
@Override
public boolean apply(Game game, Ability source) {
if (!game.hasDayNight()) {
// 702.145d
// Any time a player controls a permanent with daybound, if its neither day nor night, it becomes day.
game.setDaytime(true);
}
return true;