enjine 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a8de114a3243b7158daba48d6980757e397052fc2516b6ae10a727f067bd4c3
4
- data.tar.gz: fd1c70a0e80a23f6517d7262e3887529e34fd1c05ef3dd9b7ccb209da1b5d01d
3
+ metadata.gz: fde1590b396d19e899c2fb1c3a4d84f16696a43f4dc45fe07c8ca9fc6bf8a01c
4
+ data.tar.gz: 553667205ce6cb1ab14866e0f0e7cfa2c34102182460e7a09e352cff4adcb9be
5
5
  SHA512:
6
- metadata.gz: 320c46f47283d285a31699d07d1c591d1e302001ed69ab97b7627f38f4a266723cbad4a9aea2b5fedb55f1c5b86bf14cf7162223f2d701f597cc94f064bf5ebe
7
- data.tar.gz: 88e51fe93aceb02b02d63121995eefe10f1ebc3a18ea61f14d690c7d060f4917ee57921918adf28677a02cf2b7046403d0baa5451ee1a43023bf1a6fde649453
6
+ metadata.gz: 0c358469569ae3e2fc717e932202be9cf2602011074ed4e17f9a2f5fcf6511260f4270047ffcad69befb15649a4f56a9efeec4bcf27d34a035cb24c87832bf1f
7
+ data.tar.gz: 58bb47820eb19f73b97b3cf16d35f50e68eb8d0f20b7d41e32bbda2d11fc5338dda5193159deed98388047bf24efabd9b8428680d4b8b0b3b09508022f3b0a48
data/CHANGELOG.md CHANGED
@@ -8,6 +8,15 @@ change the public API; the stable surface is described in
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [0.6.1] - 2026-11-29
12
+
13
+ ### Fixed
14
+ - A static ability whose condition or bonus reads this turn's history applied one event late (CR 604.2, 611.3a,
15
+ 613.4c): recording a permanent entering or a creature attacking reads characteristics, so the layer pass ran on the
16
+ history from before the entry and stayed cached. "As long as a land entered the battlefield under your control this
17
+ turn", "as long as a creature entered ...", celebration (two or more nonland permanents entered) and "as long as you
18
+ attacked with a creature this turn" (mid-declaration) now apply as the permanent enters or the attacker is declared.
19
+
11
20
  ## [0.6.0] - 2026-11-28
12
21
 
13
22
  ### Added
@@ -307,7 +316,8 @@ Includes 0.4.0, which was tagged but never published to RubyGems.
307
316
  - `enjine` CLI: hot-seat and random play, `--validate`, `--verify`,
308
317
  `--random-deck`, save and load.
309
318
 
310
- [Unreleased]: https://github.com/thisiscetin/enjine/compare/v0.6.0...HEAD
319
+ [Unreleased]: https://github.com/thisiscetin/enjine/compare/v0.6.1...HEAD
320
+ [0.6.1]: https://github.com/thisiscetin/enjine/compare/v0.6.0...v0.6.1
311
321
  [0.6.0]: https://github.com/thisiscetin/enjine/compare/v0.5.0...v0.6.0
312
322
  [0.5.0]: https://github.com/thisiscetin/enjine/compare/v0.4.1...v0.5.0
313
323
  [0.4.1]: https://github.com/thisiscetin/enjine/compare/v0.4.0...v0.4.1
data/lib/enjine/engine.rb CHANGED
@@ -22,6 +22,10 @@ module Enjine
22
22
  def emit(event)
23
23
  touch! if volatile_layers? || Characteristics::LAYER_EVENTS.include?(event.class)
24
24
  record_history!(event) # before triggers look at it (see Engine::TurnHistory)
25
+ # Recording reads characteristics (the types a permanent entered or attacked with), so a layer pass may have
26
+ # run on the history as it was before this event. A static whose condition or bonus reads this turn's history
27
+ # ("as long as a land entered under your control this turn") must see the new entry (CR 604.2, 611.3a, 613.4c).
28
+ touch! if volatile_layers?
25
29
  @emit.call(event)
26
30
  watch_triggers!(event)
27
31
  check_crime!(event) # CR 700.13 (Engine::Crimes)
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Enjine
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.1"
5
5
  # Comprehensive Rules document this engine follows.
6
6
  RULES_VERSION = "2026-11-06"
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enjine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mehmet Cetin