forked from External/mage
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:
parent
70c79fd6a6
commit
d6c858ecaf
4 changed files with 68 additions and 0 deletions
|
|
@ -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 it’s neither day nor night, it becomes day.
|
||||
game.setDaytime(true);
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -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 it’s day,
|
||||
// that player transforms that permanent. This happens immediately and isn’t a state-based action.
|
||||
game.setDaytime(false);
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue