(Boolean value)
| 1400 | return this.daytime; |
| 1401 | } |
| 1402 | public void setDayTime(Boolean value) { |
| 1403 | if (StaticAbilityCantChangeDayTime.cantChangeDay(this, value)) { |
| 1404 | return; |
| 1405 | } |
| 1406 | Boolean previous = this.daytime; |
| 1407 | this.daytime = value; |
| 1408 | |
| 1409 | if (previous != null && value != null && previous != value) { |
| 1410 | Map<AbilityKey, Object> params = AbilityKey.newMap(); |
| 1411 | this.getTriggerHandler().runTrigger(TriggerType.DayTimeChanges, params, false); |
| 1412 | } |
| 1413 | if (!isNeitherDayNorNight()) |
| 1414 | fireEvent(new GameEventDayTimeChanged(isDay())); |
| 1415 | } |
| 1416 | |
| 1417 | public boolean isVoid() { |
| 1418 | return getLeftBattlefieldThisTurn().stream().anyMatch(c -> !c.isLand()) || |
no test coverage detected