@champions-digital-game/mod-sdk 0.0.0-stage → 0.46.0

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.
Files changed (1443) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +71 -2
  3. package/dist/build.js +1 -0
  4. package/dist/chunks/chunk-6WFYI6O7.js +22 -0
  5. package/dist/chunks/chunk-C2OAZ3V7.js +1 -0
  6. package/dist/chunks/chunk-EQL5OYKH.js +8477 -0
  7. package/dist/chunks/chunk-Q57JMRMI.js +4 -0
  8. package/dist/chunks/chunk-QM4LCKP5.js +7 -0
  9. package/dist/chunks/chunk-SSVC7TJ6.js +1 -0
  10. package/dist/chunks/chunk-V5MJXIOQ.js +1 -0
  11. package/dist/import.js +1 -0
  12. package/dist/index.js +1 -0
  13. package/dist/mc-pack.js +26 -0
  14. package/dist/testing.js +1 -0
  15. package/package.json +59 -4
  16. package/types/cards/src/ability-refs.d.ts +19 -0
  17. package/types/cards/src/builtin-packs/define.d.ts +60 -0
  18. package/types/cards/src/builtin-packs/index.d.ts +14 -0
  19. package/types/cards/src/builtin-packs/reprints.d.ts +33 -0
  20. package/types/cards/src/campaigns/aoa.d.ts +90 -0
  21. package/types/cards/src/campaigns/aos.d.ts +17 -0
  22. package/types/cards/src/campaigns/composed-sets.d.ts +24 -0
  23. package/types/cards/src/campaigns/expert-helpers.d.ts +94 -0
  24. package/types/cards/src/campaigns/fne.d.ts +49 -0
  25. package/types/cards/src/campaigns/gmw-balanced.d.ts +89 -0
  26. package/types/cards/src/campaigns/gmw.d.ts +57 -0
  27. package/types/cards/src/campaigns/index.d.ts +28 -0
  28. package/types/cards/src/campaigns/modular-picks.d.ts +10 -0
  29. package/types/cards/src/campaigns/mojo.d.ts +58 -0
  30. package/types/cards/src/campaigns/mts.d.ts +65 -0
  31. package/types/cards/src/campaigns/mut_gen.d.ts +51 -0
  32. package/types/cards/src/campaigns/next_evol.d.ts +57 -0
  33. package/types/cards/src/campaigns/shadowland.d.ts +8 -0
  34. package/types/cards/src/campaigns/sm.d.ts +68 -0
  35. package/types/cards/src/campaigns/structure.d.ts +36 -0
  36. package/types/cards/src/campaigns/trors.d.ts +46 -0
  37. package/types/cards/src/core/aspects/aggression.d.ts +15 -0
  38. package/types/cards/src/core/aspects/basic.d.ts +11 -0
  39. package/types/cards/src/core/aspects/justice.d.ts +11 -0
  40. package/types/cards/src/core/aspects/leadership.d.ts +13 -0
  41. package/types/cards/src/core/aspects/protection.d.ts +10 -0
  42. package/types/cards/src/core/heroes/black-panther.d.ts +26 -0
  43. package/types/cards/src/core/heroes/captain-marvel.d.ts +26 -0
  44. package/types/cards/src/core/heroes/iron-man.d.ts +27 -0
  45. package/types/cards/src/core/heroes/she-hulk.d.ts +28 -0
  46. package/types/cards/src/core/heroes/spider-man.d.ts +25 -0
  47. package/types/cards/src/core/index.d.ts +8 -0
  48. package/types/cards/src/core/modular/bomb-scare.d.ts +7 -0
  49. package/types/cards/src/core/modular/hydra-and-doomsday.d.ts +12 -0
  50. package/types/cards/src/core/modular/standard.d.ts +16 -0
  51. package/types/cards/src/core/names.d.ts +6 -0
  52. package/types/cards/src/core/obligations.d.ts +24 -0
  53. package/types/cards/src/core/pack.d.ts +3 -0
  54. package/types/cards/src/core/scenarios/klaw.d.ts +37 -0
  55. package/types/cards/src/core/scenarios/rhino.d.ts +15 -0
  56. package/types/cards/src/core/scenarios/ultron.d.ts +44 -0
  57. package/types/cards/src/core/setup.d.ts +120 -0
  58. package/types/cards/src/dsl/abilities.d.ts +4989 -0
  59. package/types/cards/src/dsl/effects.d.ts +2579 -0
  60. package/types/cards/src/dsl/engine-only-features.d.ts +14 -0
  61. package/types/cards/src/dsl/extra-encounter-deck.d.ts +29 -0
  62. package/types/cards/src/dsl/index.d.ts +11 -0
  63. package/types/cards/src/dsl/validate.d.ts +44 -0
  64. package/types/cards/src/dsl/values.d.ts +1479 -0
  65. package/types/cards/src/index.d.ts +48 -0
  66. package/types/cards/src/main-scheme-stages.d.ts +81 -0
  67. package/types/cards/src/modular-pool.d.ts +108 -0
  68. package/types/cards/src/playable/community-decks.d.ts +66 -0
  69. package/types/cards/src/playable/custom.d.ts +56 -0
  70. package/types/cards/src/playable/index.d.ts +28 -0
  71. package/types/cards/src/playable/random-civil-war.d.ts +38 -0
  72. package/types/cards/src/playable/scenario-options.d.ts +260 -0
  73. package/types/cards/src/playable/unscripted.d.ts +27 -0
  74. package/types/cards/src/testing/driver.d.ts +23 -0
  75. package/types/cards/src/testing/index.d.ts +6 -0
  76. package/types/cards/src/wave1/bkw/kit.d.ts +23 -0
  77. package/types/cards/src/wave1/bkw/local.d.ts +64 -0
  78. package/types/cards/src/wave1/bkw/nemesis.d.ts +15 -0
  79. package/types/cards/src/wave1/bkw/obligation.d.ts +5 -0
  80. package/types/cards/src/wave1/bkw/pack-cards.d.ts +23 -0
  81. package/types/cards/src/wave1/bkw/pack.d.ts +11 -0
  82. package/types/cards/src/wave1/cap/kit.d.ts +29 -0
  83. package/types/cards/src/wave1/cap/nemesis.d.ts +10 -0
  84. package/types/cards/src/wave1/cap/obligation.d.ts +8 -0
  85. package/types/cards/src/wave1/cap/pack-cards.d.ts +11 -0
  86. package/types/cards/src/wave1/cap/pack.d.ts +5 -0
  87. package/types/cards/src/wave1/drs/kit.d.ts +70 -0
  88. package/types/cards/src/wave1/drs/local.d.ts +58 -0
  89. package/types/cards/src/wave1/drs/nemesis.d.ts +12 -0
  90. package/types/cards/src/wave1/drs/obligation.d.ts +19 -0
  91. package/types/cards/src/wave1/drs/pack-cards.d.ts +42 -0
  92. package/types/cards/src/wave1/drs/pack.d.ts +14 -0
  93. package/types/cards/src/wave1/gob/a-mess-of-things.d.ts +12 -0
  94. package/types/cards/src/wave1/gob/goblin-gimmicks.d.ts +18 -0
  95. package/types/cards/src/wave1/gob/local.d.ts +113 -0
  96. package/types/cards/src/wave1/gob/mutagen-formula.d.ts +41 -0
  97. package/types/cards/src/wave1/gob/pack.d.ts +9 -0
  98. package/types/cards/src/wave1/gob/power-drain.d.ts +31 -0
  99. package/types/cards/src/wave1/gob/risky-business.d.ts +39 -0
  100. package/types/cards/src/wave1/gob/running-interference.d.ts +16 -0
  101. package/types/cards/src/wave1/hlk/kit.d.ts +33 -0
  102. package/types/cards/src/wave1/hlk/local.d.ts +47 -0
  103. package/types/cards/src/wave1/hlk/nemesis.d.ts +11 -0
  104. package/types/cards/src/wave1/hlk/obligation.d.ts +10 -0
  105. package/types/cards/src/wave1/hlk/pack-cards.d.ts +22 -0
  106. package/types/cards/src/wave1/hlk/pack.d.ts +12 -0
  107. package/types/cards/src/wave1/index.d.ts +35 -0
  108. package/types/cards/src/wave1/msm/kit.d.ts +34 -0
  109. package/types/cards/src/wave1/msm/nemesis.d.ts +11 -0
  110. package/types/cards/src/wave1/msm/obligation.d.ts +8 -0
  111. package/types/cards/src/wave1/msm/pack-cards.d.ts +22 -0
  112. package/types/cards/src/wave1/msm/pack.d.ts +5 -0
  113. package/types/cards/src/wave1/names.d.ts +9 -0
  114. package/types/cards/src/wave1/reprints.d.ts +34 -0
  115. package/types/cards/src/wave1/setup.d.ts +57 -0
  116. package/types/cards/src/wave1/thor/kit.d.ts +19 -0
  117. package/types/cards/src/wave1/thor/local.d.ts +31 -0
  118. package/types/cards/src/wave1/thor/nemesis.d.ts +10 -0
  119. package/types/cards/src/wave1/thor/obligation.d.ts +14 -0
  120. package/types/cards/src/wave1/thor/pack-cards.d.ts +22 -0
  121. package/types/cards/src/wave1/thor/pack.d.ts +12 -0
  122. package/types/cards/src/wave1/twc/breakout.d.ts +12 -0
  123. package/types/cards/src/wave1/twc/bulldozer.d.ts +32 -0
  124. package/types/cards/src/wave1/twc/local.d.ts +81 -0
  125. package/types/cards/src/wave1/twc/pack.d.ts +8 -0
  126. package/types/cards/src/wave1/twc/piledriver.d.ts +26 -0
  127. package/types/cards/src/wave1/twc/thunderball.d.ts +41 -0
  128. package/types/cards/src/wave1/twc/wrecker.d.ts +35 -0
  129. package/types/cards/src/wave10/card-groups.d.ts +16 -0
  130. package/types/cards/src/wave10/cards.d.ts +8 -0
  131. package/types/cards/src/wave10/cw/aspect-basic/aggression.d.ts +42 -0
  132. package/types/cards/src/wave10/cw/aspect-basic/basic.d.ts +30 -0
  133. package/types/cards/src/wave10/cw/aspect-basic/protection.d.ts +42 -0
  134. package/types/cards/src/wave10/cw/competitive/leader-cards.d.ts +49 -0
  135. package/types/cards/src/wave10/cw/competitive/standard-pvp.d.ts +27 -0
  136. package/types/cards/src/wave10/cw/hulkling/events.d.ts +33 -0
  137. package/types/cards/src/wave10/cw/hulkling/identity.d.ts +29 -0
  138. package/types/cards/src/wave10/cw/hulkling/obligation-nemesis.d.ts +48 -0
  139. package/types/cards/src/wave10/cw/hulkling/support-upgrades-allies.d.ts +37 -0
  140. package/types/cards/src/wave10/cw/leaders/captain-america.d.ts +37 -0
  141. package/types/cards/src/wave10/cw/leaders/captain-marvel.d.ts +35 -0
  142. package/types/cards/src/wave10/cw/leaders/iron-man.d.ts +39 -0
  143. package/types/cards/src/wave10/cw/leaders/spider-woman.d.ts +39 -0
  144. package/types/cards/src/wave10/cw/main-schemes/registration.d.ts +26 -0
  145. package/types/cards/src/wave10/cw/main-schemes/resistance.d.ts +26 -0
  146. package/types/cards/src/wave10/cw/modular/atlanteans.d.ts +22 -0
  147. package/types/cards/src/wave10/cw/modular/cape-killer.d.ts +49 -0
  148. package/types/cards/src/wave10/cw/modular/cloak-and-dagger.d.ts +34 -0
  149. package/types/cards/src/wave10/cw/modular/dangerous-recruits.d.ts +33 -0
  150. package/types/cards/src/wave10/cw/modular/defenders.d.ts +31 -0
  151. package/types/cards/src/wave10/cw/modular/hells-kitchen.d.ts +34 -0
  152. package/types/cards/src/wave10/cw/modular/heroes-for-hire.d.ts +36 -0
  153. package/types/cards/src/wave10/cw/modular/maria-hill.d.ts +35 -0
  154. package/types/cards/src/wave10/cw/modular/martial-law.d.ts +23 -0
  155. package/types/cards/src/wave10/cw/modular/mighty-avengers.d.ts +33 -0
  156. package/types/cards/src/wave10/cw/modular/namor.d.ts +30 -0
  157. package/types/cards/src/wave10/cw/modular/new-avengers.d.ts +43 -0
  158. package/types/cards/src/wave10/cw/modular/paladin.d.ts +25 -0
  159. package/types/cards/src/wave10/cw/modular/secret-avengers.d.ts +34 -0
  160. package/types/cards/src/wave10/cw/modular/spider-man.d.ts +36 -0
  161. package/types/cards/src/wave10/cw/modular/the-initiative.d.ts +35 -0
  162. package/types/cards/src/wave10/cw/pack.d.ts +10 -0
  163. package/types/cards/src/wave10/cw/tigra/events.d.ts +25 -0
  164. package/types/cards/src/wave10/cw/tigra/identity.d.ts +27 -0
  165. package/types/cards/src/wave10/cw/tigra/obligation-nemesis.d.ts +36 -0
  166. package/types/cards/src/wave10/cw/tigra/support-upgrades-allies.d.ts +48 -0
  167. package/types/cards/src/wave10/hercules/all-versus-all.d.ts +35 -0
  168. package/types/cards/src/wave10/hercules/basic.d.ts +4 -0
  169. package/types/cards/src/wave10/hercules/hercules/events.d.ts +30 -0
  170. package/types/cards/src/wave10/hercules/hercules/gift-labor.d.ts +54 -0
  171. package/types/cards/src/wave10/hercules/hercules/identity.d.ts +39 -0
  172. package/types/cards/src/wave10/hercules/hercules/obligation-nemesis.d.ts +43 -0
  173. package/types/cards/src/wave10/hercules/hercules/support-upgrades-allies.d.ts +55 -0
  174. package/types/cards/src/wave10/hercules/leadership.d.ts +42 -0
  175. package/types/cards/src/wave10/hercules/pack.d.ts +8 -0
  176. package/types/cards/src/wave10/index.d.ts +35 -0
  177. package/types/cards/src/wave10/modules.d.ts +20 -0
  178. package/types/cards/src/wave10/setup.d.ts +67 -0
  179. package/types/cards/src/wave10/synthezoid/competitive/leader-cards.d.ts +22 -0
  180. package/types/cards/src/wave10/synthezoid/competitive/standard-pvp.d.ts +27 -0
  181. package/types/cards/src/wave10/synthezoid/leaders/she-hulk.d.ts +28 -0
  182. package/types/cards/src/wave10/synthezoid/leaders/vision.d.ts +39 -0
  183. package/types/cards/src/wave10/synthezoid/main-schemes/registration.d.ts +19 -0
  184. package/types/cards/src/wave10/synthezoid/main-schemes/resistance.d.ts +19 -0
  185. package/types/cards/src/wave10/synthezoid/modular/deadly-duo.d.ts +33 -0
  186. package/types/cards/src/wave10/synthezoid/modular/moon-knight.d.ts +36 -0
  187. package/types/cards/src/wave10/synthezoid/modular/royal-guard.d.ts +31 -0
  188. package/types/cards/src/wave10/synthezoid/modular/scarlet-twins.d.ts +31 -0
  189. package/types/cards/src/wave10/synthezoid/modular/shield-ops.d.ts +27 -0
  190. package/types/cards/src/wave10/synthezoid/modular/taskmaster.d.ts +36 -0
  191. package/types/cards/src/wave10/synthezoid/modular/thunderbolts.d.ts +31 -0
  192. package/types/cards/src/wave10/synthezoid/modular/young-avengers.d.ts +29 -0
  193. package/types/cards/src/wave10/synthezoid/pack.d.ts +9 -0
  194. package/types/cards/src/wave10/wonder_man/basic.d.ts +4 -0
  195. package/types/cards/src/wave10/wonder_man/justice.d.ts +58 -0
  196. package/types/cards/src/wave10/wonder_man/other-aspects.d.ts +74 -0
  197. package/types/cards/src/wave10/wonder_man/pack.d.ts +8 -0
  198. package/types/cards/src/wave10/wonder_man/wonder-man/events.d.ts +42 -0
  199. package/types/cards/src/wave10/wonder_man/wonder-man/identity.d.ts +45 -0
  200. package/types/cards/src/wave10/wonder_man/wonder-man/obligation-nemesis.d.ts +37 -0
  201. package/types/cards/src/wave10/wonder_man/wonder-man/support-upgrades-allies.d.ts +49 -0
  202. package/types/cards/src/wave11/card-groups.d.ts +15 -0
  203. package/types/cards/src/wave11/cards.d.ts +8 -0
  204. package/types/cards/src/wave11/elektra/aggression.d.ts +29 -0
  205. package/types/cards/src/wave11/elektra/basic.d.ts +23 -0
  206. package/types/cards/src/wave11/elektra/elektra/events.d.ts +26 -0
  207. package/types/cards/src/wave11/elektra/elektra/identity.d.ts +26 -0
  208. package/types/cards/src/wave11/elektra/elektra/ninja-deck.d.ts +4 -0
  209. package/types/cards/src/wave11/elektra/elektra/obligation-nemesis.d.ts +28 -0
  210. package/types/cards/src/wave11/elektra/elektra/support-upgrades-allies.d.ts +51 -0
  211. package/types/cards/src/wave11/elektra/justice.d.ts +4 -0
  212. package/types/cards/src/wave11/elektra/leadership.d.ts +13 -0
  213. package/types/cards/src/wave11/elektra/pack.d.ts +12 -0
  214. package/types/cards/src/wave11/elektra/protection.d.ts +22 -0
  215. package/types/cards/src/wave11/fne/aspect-basic/basic.d.ts +27 -0
  216. package/types/cards/src/wave11/fne/aspect-basic/justice.d.ts +55 -0
  217. package/types/cards/src/wave11/fne/aspect-basic/protection.d.ts +41 -0
  218. package/types/cards/src/wave11/fne/campaign/environments.d.ts +43 -0
  219. package/types/cards/src/wave11/fne/campaign/typhoid-mary-ally.d.ts +22 -0
  220. package/types/cards/src/wave11/fne/daredevil/events.d.ts +32 -0
  221. package/types/cards/src/wave11/fne/daredevil/identity.d.ts +27 -0
  222. package/types/cards/src/wave11/fne/daredevil/obligation-nemesis.d.ts +32 -0
  223. package/types/cards/src/wave11/fne/daredevil/sense-deck.d.ts +4 -0
  224. package/types/cards/src/wave11/fne/daredevil/support-upgrades-allies.d.ts +45 -0
  225. package/types/cards/src/wave11/fne/echo/events.d.ts +29 -0
  226. package/types/cards/src/wave11/fne/echo/identity.d.ts +28 -0
  227. package/types/cards/src/wave11/fne/echo/obligation-nemesis.d.ts +25 -0
  228. package/types/cards/src/wave11/fne/echo/support-upgrades-allies.d.ts +44 -0
  229. package/types/cards/src/wave11/fne/modular/cops.d.ts +26 -0
  230. package/types/cards/src/wave11/fne/modular/disasters.d.ts +22 -0
  231. package/types/cards/src/wave11/fne/modular/drive.d.ts +25 -0
  232. package/types/cards/src/wave11/fne/modular/the-owl.d.ts +29 -0
  233. package/types/cards/src/wave11/fne/modular/tombstone.d.ts +28 -0
  234. package/types/cards/src/wave11/fne/modular/tracksuit-mafia.d.ts +27 -0
  235. package/types/cards/src/wave11/fne/pack.d.ts +9 -0
  236. package/types/cards/src/wave11/fne/scenarios/art-museum-heist.d.ts +35 -0
  237. package/types/cards/src/wave11/fne/scenarios/kingpin.d.ts +68 -0
  238. package/types/cards/src/wave11/fne/scenarios/protection-racket.d.ts +47 -0
  239. package/types/cards/src/wave11/fne/scenarios/stop-the-presses.d.ts +46 -0
  240. package/types/cards/src/wave11/fne/scenarios/the-getaway.d.ts +39 -0
  241. package/types/cards/src/wave11/fne/scenarios/the-raft-breakout.d.ts +46 -0
  242. package/types/cards/src/wave11/fne/villains/bullseye.d.ts +19 -0
  243. package/types/cards/src/wave11/fne/villains/electro.d.ts +38 -0
  244. package/types/cards/src/wave11/fne/villains/hammerhead.d.ts +39 -0
  245. package/types/cards/src/wave11/fne/villains/purple-man.d.ts +32 -0
  246. package/types/cards/src/wave11/fne/villains/typhoid-mary.d.ts +32 -0
  247. package/types/cards/src/wave11/index.d.ts +32 -0
  248. package/types/cards/src/wave11/iron_fist/aggression.d.ts +14 -0
  249. package/types/cards/src/wave11/iron_fist/basic.d.ts +39 -0
  250. package/types/cards/src/wave11/iron_fist/iron-fist/chi.d.ts +12 -0
  251. package/types/cards/src/wave11/iron_fist/iron-fist/events.d.ts +29 -0
  252. package/types/cards/src/wave11/iron_fist/iron-fist/identity.d.ts +28 -0
  253. package/types/cards/src/wave11/iron_fist/iron-fist/obligation-nemesis.d.ts +38 -0
  254. package/types/cards/src/wave11/iron_fist/iron-fist/support-upgrades-allies.d.ts +26 -0
  255. package/types/cards/src/wave11/iron_fist/leadership.d.ts +26 -0
  256. package/types/cards/src/wave11/iron_fist/pack.d.ts +12 -0
  257. package/types/cards/src/wave11/iron_fist/protection.d.ts +53 -0
  258. package/types/cards/src/wave11/jj/basic.d.ts +35 -0
  259. package/types/cards/src/wave11/jj/jessica-jones/events.d.ts +22 -0
  260. package/types/cards/src/wave11/jj/jessica-jones/identity.d.ts +36 -0
  261. package/types/cards/src/wave11/jj/jessica-jones/obligation-nemesis.d.ts +4 -0
  262. package/types/cards/src/wave11/jj/jessica-jones/support-upgrades-allies.d.ts +29 -0
  263. package/types/cards/src/wave11/jj/justice.d.ts +35 -0
  264. package/types/cards/src/wave11/jj/other-aspects.d.ts +27 -0
  265. package/types/cards/src/wave11/jj/pack.d.ts +8 -0
  266. package/types/cards/src/wave11/luke_cage/leadership.d.ts +32 -0
  267. package/types/cards/src/wave11/luke_cage/luke-cage/events.d.ts +27 -0
  268. package/types/cards/src/wave11/luke_cage/luke-cage/identity.d.ts +23 -0
  269. package/types/cards/src/wave11/luke_cage/luke-cage/obligation-nemesis.d.ts +42 -0
  270. package/types/cards/src/wave11/luke_cage/luke-cage/support-upgrades-allies.d.ts +29 -0
  271. package/types/cards/src/wave11/luke_cage/other-aspects-basic.d.ts +41 -0
  272. package/types/cards/src/wave11/luke_cage/pack.d.ts +8 -0
  273. package/types/cards/src/wave11/modules.d.ts +22 -0
  274. package/types/cards/src/wave11/setup.d.ts +89 -0
  275. package/types/cards/src/wave11/shadowland/black-flower.d.ts +4 -0
  276. package/types/cards/src/wave11/shadowland/creeping-corruption.d.ts +48 -0
  277. package/types/cards/src/wave11/shadowland/dark-protege.d.ts +4 -0
  278. package/types/cards/src/wave11/shadowland/deadly-contraptions.d.ts +37 -0
  279. package/types/cards/src/wave11/shadowland/heart-of-shadow.d.ts +4 -0
  280. package/types/cards/src/wave11/shadowland/ninja-swarm.d.ts +35 -0
  281. package/types/cards/src/wave11/shadowland/pack.d.ts +9 -0
  282. package/types/cards/src/wave11/shadowland/shadow-labyrinth.d.ts +56 -0
  283. package/types/cards/src/wave11/shadowland/shadows-in-the-night.d.ts +14 -0
  284. package/types/cards/src/wave2/ant/kit.d.ts +28 -0
  285. package/types/cards/src/wave2/ant/obligation-nemesis.d.ts +38 -0
  286. package/types/cards/src/wave2/ant/pack-cards.d.ts +42 -0
  287. package/types/cards/src/wave2/ant/pack.d.ts +11 -0
  288. package/types/cards/src/wave2/index.d.ts +33 -0
  289. package/types/cards/src/wave2/names.d.ts +9 -0
  290. package/types/cards/src/wave2/qsv/kit.d.ts +57 -0
  291. package/types/cards/src/wave2/qsv/obligation-nemesis.d.ts +21 -0
  292. package/types/cards/src/wave2/qsv/pack-cards.d.ts +40 -0
  293. package/types/cards/src/wave2/qsv/pack.d.ts +10 -0
  294. package/types/cards/src/wave2/reprints.d.ts +41 -0
  295. package/types/cards/src/wave2/scw/kit.d.ts +74 -0
  296. package/types/cards/src/wave2/scw/obligation-nemesis.d.ts +56 -0
  297. package/types/cards/src/wave2/scw/pack-cards.d.ts +48 -0
  298. package/types/cards/src/wave2/scw/pack.d.ts +10 -0
  299. package/types/cards/src/wave2/setup.d.ts +34 -0
  300. package/types/cards/src/wave2/toafk/kang-encounter-set.d.ts +114 -0
  301. package/types/cards/src/wave2/toafk/kang.d.ts +109 -0
  302. package/types/cards/src/wave2/toafk/pack.d.ts +11 -0
  303. package/types/cards/src/wave2/trors/absorbing-man.d.ts +66 -0
  304. package/types/cards/src/wave2/trors/campaign-cards.d.ts +34 -0
  305. package/types/cards/src/wave2/trors/crossbones.d.ts +63 -0
  306. package/types/cards/src/wave2/trors/hawkeye-kit.d.ts +34 -0
  307. package/types/cards/src/wave2/trors/hawkeye-obligation-nemesis.d.ts +36 -0
  308. package/types/cards/src/wave2/trors/pack.d.ts +11 -0
  309. package/types/cards/src/wave2/trors/red-skull.d.ts +79 -0
  310. package/types/cards/src/wave2/trors/spider-woman-kit.d.ts +29 -0
  311. package/types/cards/src/wave2/trors/spider-woman-obligation-nemesis.d.ts +12 -0
  312. package/types/cards/src/wave2/trors/taskmaster.d.ts +44 -0
  313. package/types/cards/src/wave2/trors/zola.d.ts +38 -0
  314. package/types/cards/src/wave2/wsp/kit.d.ts +52 -0
  315. package/types/cards/src/wave2/wsp/obligation-nemesis.d.ts +12 -0
  316. package/types/cards/src/wave2/wsp/pack-cards.d.ts +29 -0
  317. package/types/cards/src/wave2/wsp/pack.d.ts +11 -0
  318. package/types/cards/src/wave3/cards.d.ts +14 -0
  319. package/types/cards/src/wave3/drax/drax-kit.d.ts +42 -0
  320. package/types/cards/src/wave3/drax/drax-obligation-nemesis.d.ts +15 -0
  321. package/types/cards/src/wave3/drax/drax-pack-cards.d.ts +22 -0
  322. package/types/cards/src/wave3/drax/pack.d.ts +7 -0
  323. package/types/cards/src/wave3/gam/gamora-kit.d.ts +44 -0
  324. package/types/cards/src/wave3/gam/gamora-obligation-nemesis.d.ts +14 -0
  325. package/types/cards/src/wave3/gam/pack.d.ts +7 -0
  326. package/types/cards/src/wave3/gmw/badoon-headhunter.d.ts +19 -0
  327. package/types/cards/src/wave3/gmw/badoon.d.ts +31 -0
  328. package/types/cards/src/wave3/gmw/campaign-challenge.d.ts +27 -0
  329. package/types/cards/src/wave3/gmw/escape-the-museum.d.ts +23 -0
  330. package/types/cards/src/wave3/gmw/galactic-artifacts.d.ts +40 -0
  331. package/types/cards/src/wave3/gmw/groot-kit.d.ts +38 -0
  332. package/types/cards/src/wave3/gmw/groot-obligation-nemesis.d.ts +10 -0
  333. package/types/cards/src/wave3/gmw/market.d.ts +61 -0
  334. package/types/cards/src/wave3/gmw/museum.d.ts +23 -0
  335. package/types/cards/src/wave3/gmw/nebula.d.ts +42 -0
  336. package/types/cards/src/wave3/gmw/pack.d.ts +7 -0
  337. package/types/cards/src/wave3/gmw/rocket-kit.d.ts +39 -0
  338. package/types/cards/src/wave3/gmw/rocket-obligation-nemesis.d.ts +5 -0
  339. package/types/cards/src/wave3/gmw/ronan.d.ts +31 -0
  340. package/types/cards/src/wave3/gmw/ruthless.d.ts +22 -0
  341. package/types/cards/src/wave3/gmw/ship-command.d.ts +21 -0
  342. package/types/cards/src/wave3/index.d.ts +29 -0
  343. package/types/cards/src/wave3/names.d.ts +9 -0
  344. package/types/cards/src/wave3/reprints.d.ts +52 -0
  345. package/types/cards/src/wave3/ron/kree-fanatic.d.ts +31 -0
  346. package/types/cards/src/wave3/ron/pack.d.ts +7 -0
  347. package/types/cards/src/wave3/setup.d.ts +19 -0
  348. package/types/cards/src/wave3/stld/pack.d.ts +7 -0
  349. package/types/cards/src/wave3/stld/star-lord-kit.d.ts +71 -0
  350. package/types/cards/src/wave3/stld/star-lord-obligation-nemesis.d.ts +10 -0
  351. package/types/cards/src/wave3/vnm/pack.d.ts +8 -0
  352. package/types/cards/src/wave3/vnm/venom-kit.d.ts +65 -0
  353. package/types/cards/src/wave3/vnm/venom-obligation-nemesis.d.ts +41 -0
  354. package/types/cards/src/wave4/cards.d.ts +22 -0
  355. package/types/cards/src/wave4/hood/beasty-boys.d.ts +17 -0
  356. package/types/cards/src/wave4/hood/brothers-grimm.d.ts +8 -0
  357. package/types/cards/src/wave4/hood/crossfire-crew.d.ts +11 -0
  358. package/types/cards/src/wave4/hood/hood.d.ts +26 -0
  359. package/types/cards/src/wave4/hood/mister-hyde.d.ts +8 -0
  360. package/types/cards/src/wave4/hood/pack.d.ts +9 -0
  361. package/types/cards/src/wave4/hood/ransacked-armory.d.ts +11 -0
  362. package/types/cards/src/wave4/hood/sinister-syndicate.d.ts +15 -0
  363. package/types/cards/src/wave4/hood/standard-expert-ii.d.ts +18 -0
  364. package/types/cards/src/wave4/hood/state-of-emergency.d.ts +20 -0
  365. package/types/cards/src/wave4/hood/streets-of-mayhem.d.ts +11 -0
  366. package/types/cards/src/wave4/hood/wrecking-crew.d.ts +9 -0
  367. package/types/cards/src/wave4/index.d.ts +21 -0
  368. package/types/cards/src/wave4/mts/adam-warlock-kit.d.ts +28 -0
  369. package/types/cards/src/wave4/mts/adam-warlock-obligation-nemesis.d.ts +13 -0
  370. package/types/cards/src/wave4/mts/adam-warlock-pack-cards.d.ts +40 -0
  371. package/types/cards/src/wave4/mts/children-of-thanos.d.ts +16 -0
  372. package/types/cards/src/wave4/mts/ebony-maw.d.ts +38 -0
  373. package/types/cards/src/wave4/mts/enchantress.d.ts +7 -0
  374. package/types/cards/src/wave4/mts/frost-giants.d.ts +14 -0
  375. package/types/cards/src/wave4/mts/hela.d.ts +40 -0
  376. package/types/cards/src/wave4/mts/infinity-gauntlet.d.ts +9 -0
  377. package/types/cards/src/wave4/mts/legions-of-hel.d.ts +7 -0
  378. package/types/cards/src/wave4/mts/loki.d.ts +29 -0
  379. package/types/cards/src/wave4/mts/mts-campaign-cards.d.ts +30 -0
  380. package/types/cards/src/wave4/mts/pack.d.ts +12 -0
  381. package/types/cards/src/wave4/mts/spectrum-kit.d.ts +27 -0
  382. package/types/cards/src/wave4/mts/spectrum-obligation-nemesis.d.ts +15 -0
  383. package/types/cards/src/wave4/mts/spectrum-pack-cards.d.ts +25 -0
  384. package/types/cards/src/wave4/mts/thanos.d.ts +25 -0
  385. package/types/cards/src/wave4/mts/tower-defense.d.ts +75 -0
  386. package/types/cards/src/wave4/names.d.ts +9 -0
  387. package/types/cards/src/wave4/nebu/nebula-kit.d.ts +42 -0
  388. package/types/cards/src/wave4/nebu/nebula-obligation-nemesis.d.ts +13 -0
  389. package/types/cards/src/wave4/nebu/nebula-pack-cards.d.ts +31 -0
  390. package/types/cards/src/wave4/nebu/pack.d.ts +7 -0
  391. package/types/cards/src/wave4/reprints.d.ts +17 -0
  392. package/types/cards/src/wave4/setup.d.ts +27 -0
  393. package/types/cards/src/wave4/valk/pack.d.ts +7 -0
  394. package/types/cards/src/wave4/valk/valkyrie-kit.d.ts +23 -0
  395. package/types/cards/src/wave4/valk/valkyrie-obligation-nemesis.d.ts +16 -0
  396. package/types/cards/src/wave4/valk/valkyrie-pack-cards.d.ts +24 -0
  397. package/types/cards/src/wave4/vision/pack.d.ts +8 -0
  398. package/types/cards/src/wave4/vision/vision-kit.d.ts +47 -0
  399. package/types/cards/src/wave4/vision/vision-obligation-nemesis.d.ts +18 -0
  400. package/types/cards/src/wave4/vision/vision-pack-cards.d.ts +26 -0
  401. package/types/cards/src/wave4/warm/pack.d.ts +7 -0
  402. package/types/cards/src/wave4/warm/war-machine-kit.d.ts +31 -0
  403. package/types/cards/src/wave4/warm/war-machine-obligation-nemesis.d.ts +11 -0
  404. package/types/cards/src/wave4/warm/war-machine-pack-cards.d.ts +29 -0
  405. package/types/cards/src/wave5/cards.d.ts +17 -0
  406. package/types/cards/src/wave5/index.d.ts +18 -0
  407. package/types/cards/src/wave5/ironheart/allies.d.ts +77 -0
  408. package/types/cards/src/wave5/ironheart/events.d.ts +11 -0
  409. package/types/cards/src/wave5/ironheart/identity.d.ts +9 -0
  410. package/types/cards/src/wave5/ironheart/obligation-nemesis.d.ts +10 -0
  411. package/types/cards/src/wave5/ironheart/pack.d.ts +11 -0
  412. package/types/cards/src/wave5/ironheart/support-upgrades.d.ts +67 -0
  413. package/types/cards/src/wave5/ironheart/zzzax.d.ts +13 -0
  414. package/types/cards/src/wave5/nova/armadillo.d.ts +17 -0
  415. package/types/cards/src/wave5/nova/events.d.ts +91 -0
  416. package/types/cards/src/wave5/nova/identity.d.ts +4 -0
  417. package/types/cards/src/wave5/nova/obligation-nemesis.d.ts +103 -0
  418. package/types/cards/src/wave5/nova/pack.d.ts +10 -0
  419. package/types/cards/src/wave5/nova/support-upgrades-allies.d.ts +136 -0
  420. package/types/cards/src/wave5/setup.d.ts +35 -0
  421. package/types/cards/src/wave5/silk/quick-quip.d.ts +14 -0
  422. package/types/cards/src/wave5/sm/basic-cards.d.ts +4 -0
  423. package/types/cards/src/wave5/sm/campaign/encounter.d.ts +14 -0
  424. package/types/cards/src/wave5/sm/campaign/shield-tech.d.ts +108 -0
  425. package/types/cards/src/wave5/sm/ghost-spider/events-a.d.ts +54 -0
  426. package/types/cards/src/wave5/sm/ghost-spider/events-b.d.ts +8 -0
  427. package/types/cards/src/wave5/sm/ghost-spider/identity.d.ts +7 -0
  428. package/types/cards/src/wave5/sm/ghost-spider/index.d.ts +20 -0
  429. package/types/cards/src/wave5/sm/ghost-spider/obligation-nemesis.d.ts +59 -0
  430. package/types/cards/src/wave5/sm/ghost-spider/support-upgrades-allies.d.ts +75 -0
  431. package/types/cards/src/wave5/sm/modulars/down-to-earth.d.ts +35 -0
  432. package/types/cards/src/wave5/sm/modulars/goblin-gear.d.ts +18 -0
  433. package/types/cards/src/wave5/sm/modulars/index.d.ts +7 -0
  434. package/types/cards/src/wave5/sm/modulars/osborn-tech.d.ts +29 -0
  435. package/types/cards/src/wave5/sm/modulars/sinister-assault.d.ts +23 -0
  436. package/types/cards/src/wave5/sm/modulars/whispers-of-paranoia.d.ts +51 -0
  437. package/types/cards/src/wave5/sm/mysterio/encounter-set.d.ts +14 -0
  438. package/types/cards/src/wave5/sm/mysterio/index.d.ts +10 -0
  439. package/types/cards/src/wave5/sm/mysterio/main-scheme.d.ts +6 -0
  440. package/types/cards/src/wave5/sm/mysterio/personal-nightmare.d.ts +9 -0
  441. package/types/cards/src/wave5/sm/mysterio/villain.d.ts +7 -0
  442. package/types/cards/src/wave5/sm/pack.d.ts +9 -0
  443. package/types/cards/src/wave5/sm/sandman/city-in-chaos.d.ts +12 -0
  444. package/types/cards/src/wave5/sm/sandman/encounter-set.d.ts +22 -0
  445. package/types/cards/src/wave5/sm/sandman/index.d.ts +8 -0
  446. package/types/cards/src/wave5/sm/sandman/main-scheme.d.ts +8 -0
  447. package/types/cards/src/wave5/sm/sandman/villain.d.ts +7 -0
  448. package/types/cards/src/wave5/sm/sinister-six/encounter-attachments.d.ts +11 -0
  449. package/types/cards/src/wave5/sm/sinister-six/guerrilla-tactics.d.ts +21 -0
  450. package/types/cards/src/wave5/sm/sinister-six/index.d.ts +8 -0
  451. package/types/cards/src/wave5/sm/sinister-six/main-scheme.d.ts +14 -0
  452. package/types/cards/src/wave5/sm/sinister-six/scenario-cards.d.ts +23 -0
  453. package/types/cards/src/wave5/sm/sinister-six/treacheries.d.ts +12 -0
  454. package/types/cards/src/wave5/sm/sinister-six/villains.d.ts +45 -0
  455. package/types/cards/src/wave5/sm/spider-man-morales/events.d.ts +64 -0
  456. package/types/cards/src/wave5/sm/spider-man-morales/identity.d.ts +34 -0
  457. package/types/cards/src/wave5/sm/spider-man-morales/index.d.ts +11 -0
  458. package/types/cards/src/wave5/sm/spider-man-morales/obligation-nemesis.d.ts +42 -0
  459. package/types/cards/src/wave5/sm/spider-man-morales/precon-player-cards.d.ts +61 -0
  460. package/types/cards/src/wave5/sm/spider-man-morales/support-upgrades-allies.d.ts +53 -0
  461. package/types/cards/src/wave5/sm/venom/encounter-set.d.ts +27 -0
  462. package/types/cards/src/wave5/sm/venom/index.d.ts +9 -0
  463. package/types/cards/src/wave5/sm/venom/main-scheme.d.ts +8 -0
  464. package/types/cards/src/wave5/sm/venom/symbiotic-strength.d.ts +16 -0
  465. package/types/cards/src/wave5/sm/venom/villain.d.ts +7 -0
  466. package/types/cards/src/wave5/sm/venom-goblin/encounter-set.d.ts +19 -0
  467. package/types/cards/src/wave5/sm/venom-goblin/index.d.ts +8 -0
  468. package/types/cards/src/wave5/sm/venom-goblin/main-scheme.d.ts +36 -0
  469. package/types/cards/src/wave5/sm/venom-goblin/villain.d.ts +7 -0
  470. package/types/cards/src/wave5/spdr/allies.d.ts +83 -0
  471. package/types/cards/src/wave5/spdr/events.d.ts +64 -0
  472. package/types/cards/src/wave5/spdr/identity.d.ts +9 -0
  473. package/types/cards/src/wave5/spdr/obligation-nemesis.d.ts +7 -0
  474. package/types/cards/src/wave5/spdr/pack.d.ts +8 -0
  475. package/types/cards/src/wave5/spdr/sinister-syndicate.d.ts +22 -0
  476. package/types/cards/src/wave5/spdr/support-upgrades.d.ts +120 -0
  477. package/types/cards/src/wave5/spiderham/allies.d.ts +78 -0
  478. package/types/cards/src/wave5/spiderham/events.d.ts +78 -0
  479. package/types/cards/src/wave5/spiderham/identity.d.ts +40 -0
  480. package/types/cards/src/wave5/spiderham/inheritors.d.ts +27 -0
  481. package/types/cards/src/wave5/spiderham/obligation-nemesis.d.ts +7 -0
  482. package/types/cards/src/wave5/spiderham/pack.d.ts +8 -0
  483. package/types/cards/src/wave5/spiderham/support-upgrades.d.ts +105 -0
  484. package/types/cards/src/wave6/cards.d.ts +8 -0
  485. package/types/cards/src/wave6/cyclops/cyclops/events.d.ts +18 -0
  486. package/types/cards/src/wave6/cyclops/cyclops/identity.d.ts +20 -0
  487. package/types/cards/src/wave6/cyclops/cyclops/index.d.ts +6 -0
  488. package/types/cards/src/wave6/cyclops/cyclops/obligation-nemesis.d.ts +26 -0
  489. package/types/cards/src/wave6/cyclops/cyclops/support-upgrades-allies.d.ts +56 -0
  490. package/types/cards/src/wave6/cyclops/pack.d.ts +6 -0
  491. package/types/cards/src/wave6/cyclops/precon-player-cards.d.ts +16 -0
  492. package/types/cards/src/wave6/gambit/exodus/index.d.ts +13 -0
  493. package/types/cards/src/wave6/gambit/gambit/events.d.ts +25 -0
  494. package/types/cards/src/wave6/gambit/gambit/identity.d.ts +25 -0
  495. package/types/cards/src/wave6/gambit/gambit/index.d.ts +7 -0
  496. package/types/cards/src/wave6/gambit/gambit/obligation-nemesis.d.ts +19 -0
  497. package/types/cards/src/wave6/gambit/gambit/support-upgrades-allies.d.ts +38 -0
  498. package/types/cards/src/wave6/gambit/pack.d.ts +6 -0
  499. package/types/cards/src/wave6/index.d.ts +19 -0
  500. package/types/cards/src/wave6/mojo/crime.d.ts +21 -0
  501. package/types/cards/src/wave6/mojo/fantasy.d.ts +28 -0
  502. package/types/cards/src/wave6/mojo/horror.d.ts +14 -0
  503. package/types/cards/src/wave6/mojo/longshot.d.ts +12 -0
  504. package/types/cards/src/wave6/mojo/magog.d.ts +41 -0
  505. package/types/cards/src/wave6/mojo/mojo.d.ts +36 -0
  506. package/types/cards/src/wave6/mojo/pack.d.ts +7 -0
  507. package/types/cards/src/wave6/mojo/sci-fi.d.ts +23 -0
  508. package/types/cards/src/wave6/mojo/sitcom.d.ts +29 -0
  509. package/types/cards/src/wave6/mojo/spiral.d.ts +34 -0
  510. package/types/cards/src/wave6/mojo/western.d.ts +28 -0
  511. package/types/cards/src/wave6/mut_gen/acolytes.d.ts +25 -0
  512. package/types/cards/src/wave6/mut_gen/brotherhood.d.ts +27 -0
  513. package/types/cards/src/wave6/mut_gen/campaign-cards.d.ts +33 -0
  514. package/types/cards/src/wave6/mut_gen/colossus/events.d.ts +25 -0
  515. package/types/cards/src/wave6/mut_gen/colossus/identity.d.ts +24 -0
  516. package/types/cards/src/wave6/mut_gen/colossus/index.d.ts +7 -0
  517. package/types/cards/src/wave6/mut_gen/colossus/obligation-nemesis.d.ts +25 -0
  518. package/types/cards/src/wave6/mut_gen/colossus/support-upgrades-allies.d.ts +31 -0
  519. package/types/cards/src/wave6/mut_gen/future-past.d.ts +24 -0
  520. package/types/cards/src/wave6/mut_gen/magneto.d.ts +64 -0
  521. package/types/cards/src/wave6/mut_gen/mansion-attack.d.ts +57 -0
  522. package/types/cards/src/wave6/mut_gen/master-mold.d.ts +32 -0
  523. package/types/cards/src/wave6/mut_gen/mystique.d.ts +30 -0
  524. package/types/cards/src/wave6/mut_gen/pack.d.ts +8 -0
  525. package/types/cards/src/wave6/mut_gen/precon-player-cards.d.ts +36 -0
  526. package/types/cards/src/wave6/mut_gen/project-wideawake.d.ts +61 -0
  527. package/types/cards/src/wave6/mut_gen/role-upgrades.d.ts +73 -0
  528. package/types/cards/src/wave6/mut_gen/sabretooth.d.ts +54 -0
  529. package/types/cards/src/wave6/mut_gen/sentinels.d.ts +20 -0
  530. package/types/cards/src/wave6/mut_gen/shadowcat/events.d.ts +27 -0
  531. package/types/cards/src/wave6/mut_gen/shadowcat/identity.d.ts +29 -0
  532. package/types/cards/src/wave6/mut_gen/shadowcat/index.d.ts +7 -0
  533. package/types/cards/src/wave6/mut_gen/shadowcat/obligation-nemesis.d.ts +32 -0
  534. package/types/cards/src/wave6/mut_gen/shadowcat/support-upgrades-allies.d.ts +36 -0
  535. package/types/cards/src/wave6/mut_gen/zero-tolerance.d.ts +16 -0
  536. package/types/cards/src/wave6/phoenix/pack.d.ts +7 -0
  537. package/types/cards/src/wave6/phoenix/phoenix/events.d.ts +31 -0
  538. package/types/cards/src/wave6/phoenix/phoenix/identity.d.ts +26 -0
  539. package/types/cards/src/wave6/phoenix/phoenix/index.d.ts +8 -0
  540. package/types/cards/src/wave6/phoenix/phoenix/obligation-nemesis.d.ts +26 -0
  541. package/types/cards/src/wave6/phoenix/phoenix/support-upgrades-allies.d.ts +41 -0
  542. package/types/cards/src/wave6/phoenix/precon-player-cards.d.ts +9 -0
  543. package/types/cards/src/wave6/rogue/pack.d.ts +6 -0
  544. package/types/cards/src/wave6/rogue/reavers/index.d.ts +14 -0
  545. package/types/cards/src/wave6/rogue/rogue/events.d.ts +33 -0
  546. package/types/cards/src/wave6/rogue/rogue/identity.d.ts +25 -0
  547. package/types/cards/src/wave6/rogue/rogue/index.d.ts +7 -0
  548. package/types/cards/src/wave6/rogue/rogue/obligation-nemesis.d.ts +23 -0
  549. package/types/cards/src/wave6/rogue/rogue/support-upgrades-allies.d.ts +40 -0
  550. package/types/cards/src/wave6/setup.d.ts +18 -0
  551. package/types/cards/src/wave6/storm/pack.d.ts +6 -0
  552. package/types/cards/src/wave6/storm/shadow-king/index.d.ts +12 -0
  553. package/types/cards/src/wave6/storm/storm/events.d.ts +26 -0
  554. package/types/cards/src/wave6/storm/storm/identity.d.ts +24 -0
  555. package/types/cards/src/wave6/storm/storm/index.d.ts +8 -0
  556. package/types/cards/src/wave6/storm/storm/obligation-nemesis.d.ts +27 -0
  557. package/types/cards/src/wave6/storm/storm/support-upgrades-allies.d.ts +49 -0
  558. package/types/cards/src/wave6/storm/storm/weather.d.ts +24 -0
  559. package/types/cards/src/wave6/wolv/lady-deathstrike.d.ts +9 -0
  560. package/types/cards/src/wave6/wolv/pack.d.ts +7 -0
  561. package/types/cards/src/wave6/wolv/precon-player-cards.d.ts +35 -0
  562. package/types/cards/src/wave6/wolv/wolverine/events.d.ts +23 -0
  563. package/types/cards/src/wave6/wolv/wolverine/identity.d.ts +25 -0
  564. package/types/cards/src/wave6/wolv/wolverine/index.d.ts +8 -0
  565. package/types/cards/src/wave6/wolv/wolverine/obligation-nemesis.d.ts +20 -0
  566. package/types/cards/src/wave6/wolv/wolverine/support-upgrades-allies.d.ts +31 -0
  567. package/types/cards/src/wave7/angel/events.d.ts +25 -0
  568. package/types/cards/src/wave7/angel/identity.d.ts +16 -0
  569. package/types/cards/src/wave7/angel/obligation-nemesis.d.ts +19 -0
  570. package/types/cards/src/wave7/angel/pack-cards.d.ts +15 -0
  571. package/types/cards/src/wave7/angel/pack.d.ts +6 -0
  572. package/types/cards/src/wave7/angel/support-upgrades-allies.d.ts +23 -0
  573. package/types/cards/src/wave7/cards.d.ts +8 -0
  574. package/types/cards/src/wave7/deadpool/dreadpool.d.ts +2 -0
  575. package/types/cards/src/wave7/deadpool/events.d.ts +2 -0
  576. package/types/cards/src/wave7/deadpool/identity.d.ts +17 -0
  577. package/types/cards/src/wave7/deadpool/obligation-nemesis.d.ts +32 -0
  578. package/types/cards/src/wave7/deadpool/pack-cards.d.ts +2 -0
  579. package/types/cards/src/wave7/deadpool/pack.d.ts +6 -0
  580. package/types/cards/src/wave7/deadpool/support-upgrades-allies.d.ts +20 -0
  581. package/types/cards/src/wave7/index.d.ts +19 -0
  582. package/types/cards/src/wave7/next_evol/black-tom-cassidy.d.ts +2 -0
  583. package/types/cards/src/wave7/next_evol/cable/events.d.ts +16 -0
  584. package/types/cards/src/wave7/next_evol/cable/identity.d.ts +15 -0
  585. package/types/cards/src/wave7/next_evol/cable/index.d.ts +3 -0
  586. package/types/cards/src/wave7/next_evol/cable/obligation-nemesis.d.ts +22 -0
  587. package/types/cards/src/wave7/next_evol/cable/support-upgrades-allies.d.ts +25 -0
  588. package/types/cards/src/wave7/next_evol/campaign.d.ts +37 -0
  589. package/types/cards/src/wave7/next_evol/domino/events.d.ts +18 -0
  590. package/types/cards/src/wave7/next_evol/domino/identity.d.ts +13 -0
  591. package/types/cards/src/wave7/next_evol/domino/index.d.ts +3 -0
  592. package/types/cards/src/wave7/next_evol/domino/obligation-nemesis.d.ts +19 -0
  593. package/types/cards/src/wave7/next_evol/domino/support-upgrades-allies.d.ts +29 -0
  594. package/types/cards/src/wave7/next_evol/extreme-measures.d.ts +2 -0
  595. package/types/cards/src/wave7/next_evol/flight.d.ts +2 -0
  596. package/types/cards/src/wave7/next_evol/hope-summers.d.ts +2 -0
  597. package/types/cards/src/wave7/next_evol/juggernaut.d.ts +2 -0
  598. package/types/cards/src/wave7/next_evol/marauders.d.ts +2 -0
  599. package/types/cards/src/wave7/next_evol/military-grade.d.ts +2 -0
  600. package/types/cards/src/wave7/next_evol/mister-sinister.d.ts +2 -0
  601. package/types/cards/src/wave7/next_evol/morlock-siege.d.ts +2 -0
  602. package/types/cards/src/wave7/next_evol/mutant-insurrection.d.ts +2 -0
  603. package/types/cards/src/wave7/next_evol/mutant-slayers.d.ts +2 -0
  604. package/types/cards/src/wave7/next_evol/nasty-boys.d.ts +2 -0
  605. package/types/cards/src/wave7/next_evol/on-the-run.d.ts +2 -0
  606. package/types/cards/src/wave7/next_evol/pack.d.ts +7 -0
  607. package/types/cards/src/wave7/next_evol/precon-cable-deck.d.ts +46 -0
  608. package/types/cards/src/wave7/next_evol/precon-domino-deck.d.ts +26 -0
  609. package/types/cards/src/wave7/next_evol/precon-player-cards.d.ts +6 -0
  610. package/types/cards/src/wave7/next_evol/stryfe.d.ts +2 -0
  611. package/types/cards/src/wave7/next_evol/super-strength.d.ts +2 -0
  612. package/types/cards/src/wave7/next_evol/telepathy.d.ts +2 -0
  613. package/types/cards/src/wave7/psylocke/events.d.ts +25 -0
  614. package/types/cards/src/wave7/psylocke/identity.d.ts +17 -0
  615. package/types/cards/src/wave7/psylocke/obligation-nemesis.d.ts +18 -0
  616. package/types/cards/src/wave7/psylocke/pack-cards.d.ts +2 -0
  617. package/types/cards/src/wave7/psylocke/pack.d.ts +6 -0
  618. package/types/cards/src/wave7/psylocke/support-upgrades-allies.d.ts +29 -0
  619. package/types/cards/src/wave7/setup.d.ts +14 -0
  620. package/types/cards/src/wave7/x23/events.d.ts +21 -0
  621. package/types/cards/src/wave7/x23/identity.d.ts +18 -0
  622. package/types/cards/src/wave7/x23/obligation-nemesis.d.ts +18 -0
  623. package/types/cards/src/wave7/x23/pack-cards.d.ts +18 -0
  624. package/types/cards/src/wave7/x23/pack.d.ts +6 -0
  625. package/types/cards/src/wave7/x23/support-upgrades-allies.d.ts +22 -0
  626. package/types/cards/src/wave8/aoa/apocalypse.d.ts +4 -0
  627. package/types/cards/src/wave8/aoa/aspect-basic.d.ts +90 -0
  628. package/types/cards/src/wave8/aoa/bishop/events.d.ts +21 -0
  629. package/types/cards/src/wave8/aoa/bishop/identity.d.ts +23 -0
  630. package/types/cards/src/wave8/aoa/bishop/index.d.ts +3 -0
  631. package/types/cards/src/wave8/aoa/bishop/obligation-nemesis.d.ts +34 -0
  632. package/types/cards/src/wave8/aoa/bishop/support-upgrades-allies.d.ts +32 -0
  633. package/types/cards/src/wave8/aoa/blue-moon.d.ts +27 -0
  634. package/types/cards/src/wave8/aoa/campaign/age-of-apocalypse.d.ts +24 -0
  635. package/types/cards/src/wave8/aoa/campaign/aoa-basic-campaign.d.ts +4 -0
  636. package/types/cards/src/wave8/aoa/campaign/aoa-campaign.d.ts +23 -0
  637. package/types/cards/src/wave8/aoa/campaign/aoa-mission.d.ts +4 -0
  638. package/types/cards/src/wave8/aoa/campaign/index.d.ts +3 -0
  639. package/types/cards/src/wave8/aoa/campaign/mission-rules.d.ts +113 -0
  640. package/types/cards/src/wave8/aoa/campaign/overseer.d.ts +4 -0
  641. package/types/cards/src/wave8/aoa/celestial-tech.d.ts +26 -0
  642. package/types/cards/src/wave8/aoa/clan-akkaba.d.ts +16 -0
  643. package/types/cards/src/wave8/aoa/dark-beast.d.ts +31 -0
  644. package/types/cards/src/wave8/aoa/dark-riders.d.ts +17 -0
  645. package/types/cards/src/wave8/aoa/dystopian-nightmare.d.ts +15 -0
  646. package/types/cards/src/wave8/aoa/en-sabah-nur.d.ts +26 -0
  647. package/types/cards/src/wave8/aoa/four-horsemen.d.ts +4 -0
  648. package/types/cards/src/wave8/aoa/genosha.d.ts +29 -0
  649. package/types/cards/src/wave8/aoa/hounds.d.ts +22 -0
  650. package/types/cards/src/wave8/aoa/infinites.d.ts +41 -0
  651. package/types/cards/src/wave8/aoa/magik/events.d.ts +28 -0
  652. package/types/cards/src/wave8/aoa/magik/identity.d.ts +26 -0
  653. package/types/cards/src/wave8/aoa/magik/index.d.ts +3 -0
  654. package/types/cards/src/wave8/aoa/magik/obligation-nemesis.d.ts +37 -0
  655. package/types/cards/src/wave8/aoa/magik/support-upgrades-allies.d.ts +31 -0
  656. package/types/cards/src/wave8/aoa/pack.d.ts +11 -0
  657. package/types/cards/src/wave8/aoa/prelates.d.ts +4 -0
  658. package/types/cards/src/wave8/aoa/savage-land.d.ts +26 -0
  659. package/types/cards/src/wave8/aoa/setting.d.ts +19 -0
  660. package/types/cards/src/wave8/aoa/standard-iii.d.ts +30 -0
  661. package/types/cards/src/wave8/aoa/unus.d.ts +4 -0
  662. package/types/cards/src/wave8/card-groups.d.ts +6 -0
  663. package/types/cards/src/wave8/cards.d.ts +9 -0
  664. package/types/cards/src/wave8/iceman/aspect-basic.d.ts +54 -0
  665. package/types/cards/src/wave8/iceman/iceman/events.d.ts +28 -0
  666. package/types/cards/src/wave8/iceman/iceman/identity.d.ts +26 -0
  667. package/types/cards/src/wave8/iceman/iceman/index.d.ts +3 -0
  668. package/types/cards/src/wave8/iceman/iceman/obligation-nemesis.d.ts +37 -0
  669. package/types/cards/src/wave8/iceman/iceman/support-upgrades-allies.d.ts +58 -0
  670. package/types/cards/src/wave8/iceman/pack.d.ts +7 -0
  671. package/types/cards/src/wave8/iceman/sauron.d.ts +30 -0
  672. package/types/cards/src/wave8/index.d.ts +27 -0
  673. package/types/cards/src/wave8/jubilee/arcade.d.ts +18 -0
  674. package/types/cards/src/wave8/jubilee/aspect-basic.d.ts +75 -0
  675. package/types/cards/src/wave8/jubilee/jubilee/events.d.ts +4 -0
  676. package/types/cards/src/wave8/jubilee/jubilee/identity.d.ts +16 -0
  677. package/types/cards/src/wave8/jubilee/jubilee/index.d.ts +3 -0
  678. package/types/cards/src/wave8/jubilee/jubilee/obligation-nemesis.d.ts +38 -0
  679. package/types/cards/src/wave8/jubilee/jubilee/support-upgrades-allies.d.ts +4 -0
  680. package/types/cards/src/wave8/jubilee/pack.d.ts +7 -0
  681. package/types/cards/src/wave8/magneto/aspect-basic.d.ts +68 -0
  682. package/types/cards/src/wave8/magneto/hellfire.d.ts +4 -0
  683. package/types/cards/src/wave8/magneto/magneto/events.d.ts +28 -0
  684. package/types/cards/src/wave8/magneto/magneto/identity.d.ts +31 -0
  685. package/types/cards/src/wave8/magneto/magneto/index.d.ts +3 -0
  686. package/types/cards/src/wave8/magneto/magneto/obligation-nemesis.d.ts +41 -0
  687. package/types/cards/src/wave8/magneto/magneto/support-upgrades-allies.d.ts +41 -0
  688. package/types/cards/src/wave8/magneto/pack.d.ts +7 -0
  689. package/types/cards/src/wave8/ncrawler/aspect-basic.d.ts +49 -0
  690. package/types/cards/src/wave8/ncrawler/crazy-gang.d.ts +26 -0
  691. package/types/cards/src/wave8/ncrawler/nightcrawler/events.d.ts +36 -0
  692. package/types/cards/src/wave8/ncrawler/nightcrawler/identity.d.ts +16 -0
  693. package/types/cards/src/wave8/ncrawler/nightcrawler/index.d.ts +3 -0
  694. package/types/cards/src/wave8/ncrawler/nightcrawler/obligation-nemesis.d.ts +35 -0
  695. package/types/cards/src/wave8/ncrawler/nightcrawler/support-upgrades-allies.d.ts +32 -0
  696. package/types/cards/src/wave8/ncrawler/pack.d.ts +8 -0
  697. package/types/cards/src/wave8/setup.d.ts +54 -0
  698. package/types/cards/src/wave9/aos/aim-abduction.d.ts +34 -0
  699. package/types/cards/src/wave9/aos/aim-science.d.ts +23 -0
  700. package/types/cards/src/wave9/aos/aspect-basic.d.ts +129 -0
  701. package/types/cards/src/wave9/aos/baron-zemo.d.ts +50 -0
  702. package/types/cards/src/wave9/aos/batroc.d.ts +44 -0
  703. package/types/cards/src/wave9/aos/batrocs-brigade.d.ts +36 -0
  704. package/types/cards/src/wave9/aos/black-widow.d.ts +42 -0
  705. package/types/cards/src/wave9/aos/campaign/carryover.d.ts +54 -0
  706. package/types/cards/src/wave9/aos/campaign/executive-board-evidence.d.ts +53 -0
  707. package/types/cards/src/wave9/aos/campaign/executive-board.d.ts +71 -0
  708. package/types/cards/src/wave9/aos/executive-board.d.ts +35 -0
  709. package/types/cards/src/wave9/aos/gravitational-pull.d.ts +30 -0
  710. package/types/cards/src/wave9/aos/hard-sound.d.ts +35 -0
  711. package/types/cards/src/wave9/aos/maria-hill/events.d.ts +41 -0
  712. package/types/cards/src/wave9/aos/maria-hill/identity.d.ts +30 -0
  713. package/types/cards/src/wave9/aos/maria-hill/obligation-nemesis.d.ts +38 -0
  714. package/types/cards/src/wave9/aos/maria-hill/support-upgrades-allies.d.ts +32 -0
  715. package/types/cards/src/wave9/aos/modok.d.ts +10 -0
  716. package/types/cards/src/wave9/aos/nick-fury/events.d.ts +21 -0
  717. package/types/cards/src/wave9/aos/nick-fury/identity.d.ts +23 -0
  718. package/types/cards/src/wave9/aos/nick-fury/obligation-nemesis.d.ts +33 -0
  719. package/types/cards/src/wave9/aos/nick-fury/support-upgrades-allies.d.ts +70 -0
  720. package/types/cards/src/wave9/aos/pack.d.ts +9 -0
  721. package/types/cards/src/wave9/aos/pale-little-spider.d.ts +29 -0
  722. package/types/cards/src/wave9/aos/power-of-the-atom.d.ts +31 -0
  723. package/types/cards/src/wave9/aos/scientist-supreme.d.ts +26 -0
  724. package/types/cards/src/wave9/aos/shield.d.ts +27 -0
  725. package/types/cards/src/wave9/aos/supersonic.d.ts +35 -0
  726. package/types/cards/src/wave9/aos/the-leaper.d.ts +28 -0
  727. package/types/cards/src/wave9/aos/thunderbolts.d.ts +4 -0
  728. package/types/cards/src/wave9/bp/aspect-basic.d.ts +93 -0
  729. package/types/cards/src/wave9/bp/black-panther/events.d.ts +15 -0
  730. package/types/cards/src/wave9/bp/black-panther/identity.d.ts +30 -0
  731. package/types/cards/src/wave9/bp/black-panther/obligation-nemesis.d.ts +30 -0
  732. package/types/cards/src/wave9/bp/black-panther/support-upgrades-allies.d.ts +30 -0
  733. package/types/cards/src/wave9/bp/extreme-risk.d.ts +30 -0
  734. package/types/cards/src/wave9/bp/pack.d.ts +8 -0
  735. package/types/cards/src/wave9/card-groups.d.ts +9 -0
  736. package/types/cards/src/wave9/cards.d.ts +8 -0
  737. package/types/cards/src/wave9/falcon/aspect-basic.d.ts +131 -0
  738. package/types/cards/src/wave9/falcon/falcon/events.d.ts +46 -0
  739. package/types/cards/src/wave9/falcon/falcon/identity.d.ts +28 -0
  740. package/types/cards/src/wave9/falcon/falcon/obligation-nemesis.d.ts +34 -0
  741. package/types/cards/src/wave9/falcon/falcon/support-upgrades-allies.d.ts +75 -0
  742. package/types/cards/src/wave9/falcon/pack.d.ts +7 -0
  743. package/types/cards/src/wave9/falcon/techno.d.ts +35 -0
  744. package/types/cards/src/wave9/index.d.ts +27 -0
  745. package/types/cards/src/wave9/setup.d.ts +27 -0
  746. package/types/cards/src/wave9/silk/aspect-basic.d.ts +68 -0
  747. package/types/cards/src/wave9/silk/growing-strong.d.ts +28 -0
  748. package/types/cards/src/wave9/silk/pack.d.ts +12 -0
  749. package/types/cards/src/wave9/silk/silk/events.d.ts +38 -0
  750. package/types/cards/src/wave9/silk/silk/identity.d.ts +22 -0
  751. package/types/cards/src/wave9/silk/silk/obligation-nemesis.d.ts +41 -0
  752. package/types/cards/src/wave9/silk/silk/support-upgrades-allies.d.ts +53 -0
  753. package/types/cards/src/wave9/tt/aspect-basic.d.ts +25 -0
  754. package/types/cards/src/wave9/tt/enchantress.d.ts +56 -0
  755. package/types/cards/src/wave9/tt/god-of-lies.d.ts +56 -0
  756. package/types/cards/src/wave9/tt/pack.d.ts +8 -0
  757. package/types/cards/src/wave9/tt/trickster-magic.d.ts +34 -0
  758. package/types/cards/src/wave9/winter/aspect-basic.d.ts +78 -0
  759. package/types/cards/src/wave9/winter/pack.d.ts +8 -0
  760. package/types/cards/src/wave9/winter/whiteout.d.ts +30 -0
  761. package/types/cards/src/wave9/winter/winter-soldier/events.d.ts +30 -0
  762. package/types/cards/src/wave9/winter/winter-soldier/identity.d.ts +23 -0
  763. package/types/cards/src/wave9/winter/winter-soldier/obligation-nemesis.d.ts +36 -0
  764. package/types/cards/src/wave9/winter/winter-soldier/support-upgrades-allies.d.ts +59 -0
  765. package/types/content/src/data/angel/cards.d.ts +3 -0
  766. package/types/content/src/data/angel/encounterSets.d.ts +2 -0
  767. package/types/content/src/data/angel/index.d.ts +6 -0
  768. package/types/content/src/data/angel/packs.d.ts +4 -0
  769. package/types/content/src/data/angel/provenance.d.ts +4 -0
  770. package/types/content/src/data/angel/scenarios.d.ts +2 -0
  771. package/types/content/src/data/angel/starterDecks.d.ts +2 -0
  772. package/types/content/src/data/ant/cards.d.ts +3 -0
  773. package/types/content/src/data/ant/encounterSets.d.ts +2 -0
  774. package/types/content/src/data/ant/index.d.ts +6 -0
  775. package/types/content/src/data/ant/packs.d.ts +4 -0
  776. package/types/content/src/data/ant/provenance.d.ts +4 -0
  777. package/types/content/src/data/ant/scenarios.d.ts +2 -0
  778. package/types/content/src/data/ant/starterDecks.d.ts +2 -0
  779. package/types/content/src/data/aoa/campaign.d.ts +20 -0
  780. package/types/content/src/data/aoa/cards.d.ts +3 -0
  781. package/types/content/src/data/aoa/encounterSets.d.ts +2 -0
  782. package/types/content/src/data/aoa/index.d.ts +7 -0
  783. package/types/content/src/data/aoa/packs.d.ts +4 -0
  784. package/types/content/src/data/aoa/provenance.d.ts +4 -0
  785. package/types/content/src/data/aoa/scenarios.d.ts +3 -0
  786. package/types/content/src/data/aoa/starterDecks.d.ts +2 -0
  787. package/types/content/src/data/aos/campaign.d.ts +55 -0
  788. package/types/content/src/data/aos/cards.d.ts +3 -0
  789. package/types/content/src/data/aos/encounterSets.d.ts +2 -0
  790. package/types/content/src/data/aos/evidence.d.ts +3 -0
  791. package/types/content/src/data/aos/index.d.ts +9 -0
  792. package/types/content/src/data/aos/packs.d.ts +4 -0
  793. package/types/content/src/data/aos/provenance.d.ts +4 -0
  794. package/types/content/src/data/aos/scenarios.d.ts +3 -0
  795. package/types/content/src/data/aos/starterDecks.d.ts +2 -0
  796. package/types/content/src/data/aos/thunderbolts.d.ts +21 -0
  797. package/types/content/src/data/bkw/cards.d.ts +3 -0
  798. package/types/content/src/data/bkw/encounterSets.d.ts +2 -0
  799. package/types/content/src/data/bkw/index.d.ts +6 -0
  800. package/types/content/src/data/bkw/packs.d.ts +4 -0
  801. package/types/content/src/data/bkw/provenance.d.ts +4 -0
  802. package/types/content/src/data/bkw/scenarios.d.ts +2 -0
  803. package/types/content/src/data/bkw/starterDecks.d.ts +2 -0
  804. package/types/content/src/data/bp/cards.d.ts +3 -0
  805. package/types/content/src/data/bp/encounterSets.d.ts +2 -0
  806. package/types/content/src/data/bp/index.d.ts +6 -0
  807. package/types/content/src/data/bp/packs.d.ts +4 -0
  808. package/types/content/src/data/bp/provenance.d.ts +4 -0
  809. package/types/content/src/data/bp/scenarios.d.ts +2 -0
  810. package/types/content/src/data/bp/starterDecks.d.ts +2 -0
  811. package/types/content/src/data/cap/cards.d.ts +3 -0
  812. package/types/content/src/data/cap/encounterSets.d.ts +2 -0
  813. package/types/content/src/data/cap/index.d.ts +6 -0
  814. package/types/content/src/data/cap/packs.d.ts +4 -0
  815. package/types/content/src/data/cap/provenance.d.ts +4 -0
  816. package/types/content/src/data/cap/scenarios.d.ts +2 -0
  817. package/types/content/src/data/cap/starterDecks.d.ts +2 -0
  818. package/types/content/src/data/catalog-codes.d.ts +35 -0
  819. package/types/content/src/data/catalog.d.ts +6 -0
  820. package/types/content/src/data/core/cards.d.ts +3 -0
  821. package/types/content/src/data/core/encounterSets.d.ts +2 -0
  822. package/types/content/src/data/core/index.d.ts +6 -0
  823. package/types/content/src/data/core/packs.d.ts +4 -0
  824. package/types/content/src/data/core/provenance.d.ts +4 -0
  825. package/types/content/src/data/core/scenarios.d.ts +3 -0
  826. package/types/content/src/data/core/starterDecks.d.ts +2 -0
  827. package/types/content/src/data/cw/cards.d.ts +3 -0
  828. package/types/content/src/data/cw/encounterSets.d.ts +2 -0
  829. package/types/content/src/data/cw/index.d.ts +6 -0
  830. package/types/content/src/data/cw/packs.d.ts +4 -0
  831. package/types/content/src/data/cw/provenance.d.ts +4 -0
  832. package/types/content/src/data/cw/scenarios.d.ts +3 -0
  833. package/types/content/src/data/cw/starterDecks.d.ts +2 -0
  834. package/types/content/src/data/cyclops/cards.d.ts +3 -0
  835. package/types/content/src/data/cyclops/encounterSets.d.ts +2 -0
  836. package/types/content/src/data/cyclops/index.d.ts +6 -0
  837. package/types/content/src/data/cyclops/packs.d.ts +4 -0
  838. package/types/content/src/data/cyclops/provenance.d.ts +4 -0
  839. package/types/content/src/data/cyclops/scenarios.d.ts +2 -0
  840. package/types/content/src/data/cyclops/starterDecks.d.ts +2 -0
  841. package/types/content/src/data/deadpool/cards.d.ts +3 -0
  842. package/types/content/src/data/deadpool/encounterSets.d.ts +2 -0
  843. package/types/content/src/data/deadpool/index.d.ts +6 -0
  844. package/types/content/src/data/deadpool/packs.d.ts +4 -0
  845. package/types/content/src/data/deadpool/provenance.d.ts +4 -0
  846. package/types/content/src/data/deadpool/scenarios.d.ts +2 -0
  847. package/types/content/src/data/deadpool/starterDecks.d.ts +2 -0
  848. package/types/content/src/data/drax/cards.d.ts +3 -0
  849. package/types/content/src/data/drax/encounterSets.d.ts +2 -0
  850. package/types/content/src/data/drax/index.d.ts +6 -0
  851. package/types/content/src/data/drax/packs.d.ts +4 -0
  852. package/types/content/src/data/drax/provenance.d.ts +4 -0
  853. package/types/content/src/data/drax/scenarios.d.ts +2 -0
  854. package/types/content/src/data/drax/starterDecks.d.ts +2 -0
  855. package/types/content/src/data/drs/cards.d.ts +3 -0
  856. package/types/content/src/data/drs/encounterSets.d.ts +2 -0
  857. package/types/content/src/data/drs/index.d.ts +6 -0
  858. package/types/content/src/data/drs/packs.d.ts +4 -0
  859. package/types/content/src/data/drs/provenance.d.ts +4 -0
  860. package/types/content/src/data/drs/scenarios.d.ts +2 -0
  861. package/types/content/src/data/drs/starterDecks.d.ts +2 -0
  862. package/types/content/src/data/elektra/cards.d.ts +3 -0
  863. package/types/content/src/data/elektra/encounterSets.d.ts +2 -0
  864. package/types/content/src/data/elektra/index.d.ts +6 -0
  865. package/types/content/src/data/elektra/packs.d.ts +4 -0
  866. package/types/content/src/data/elektra/provenance.d.ts +4 -0
  867. package/types/content/src/data/elektra/scenarios.d.ts +2 -0
  868. package/types/content/src/data/elektra/starterDecks.d.ts +2 -0
  869. package/types/content/src/data/falcon/cards.d.ts +3 -0
  870. package/types/content/src/data/falcon/encounterSets.d.ts +2 -0
  871. package/types/content/src/data/falcon/index.d.ts +6 -0
  872. package/types/content/src/data/falcon/packs.d.ts +4 -0
  873. package/types/content/src/data/falcon/provenance.d.ts +4 -0
  874. package/types/content/src/data/falcon/scenarios.d.ts +2 -0
  875. package/types/content/src/data/falcon/starterDecks.d.ts +2 -0
  876. package/types/content/src/data/fne/campaign.d.ts +14 -0
  877. package/types/content/src/data/fne/cards.d.ts +3 -0
  878. package/types/content/src/data/fne/encounterSets.d.ts +2 -0
  879. package/types/content/src/data/fne/index.d.ts +7 -0
  880. package/types/content/src/data/fne/packs.d.ts +4 -0
  881. package/types/content/src/data/fne/provenance.d.ts +4 -0
  882. package/types/content/src/data/fne/scenarios.d.ts +3 -0
  883. package/types/content/src/data/fne/starterDecks.d.ts +2 -0
  884. package/types/content/src/data/gam/cards.d.ts +3 -0
  885. package/types/content/src/data/gam/encounterSets.d.ts +2 -0
  886. package/types/content/src/data/gam/index.d.ts +6 -0
  887. package/types/content/src/data/gam/packs.d.ts +4 -0
  888. package/types/content/src/data/gam/provenance.d.ts +4 -0
  889. package/types/content/src/data/gam/scenarios.d.ts +2 -0
  890. package/types/content/src/data/gam/starterDecks.d.ts +2 -0
  891. package/types/content/src/data/gambit/cards.d.ts +3 -0
  892. package/types/content/src/data/gambit/encounterSets.d.ts +2 -0
  893. package/types/content/src/data/gambit/index.d.ts +6 -0
  894. package/types/content/src/data/gambit/packs.d.ts +4 -0
  895. package/types/content/src/data/gambit/provenance.d.ts +4 -0
  896. package/types/content/src/data/gambit/scenarios.d.ts +2 -0
  897. package/types/content/src/data/gambit/starterDecks.d.ts +2 -0
  898. package/types/content/src/data/gmw/campaign.d.ts +18 -0
  899. package/types/content/src/data/gmw/cards.d.ts +3 -0
  900. package/types/content/src/data/gmw/encounterSets.d.ts +2 -0
  901. package/types/content/src/data/gmw/index.d.ts +7 -0
  902. package/types/content/src/data/gmw/packs.d.ts +4 -0
  903. package/types/content/src/data/gmw/provenance.d.ts +4 -0
  904. package/types/content/src/data/gmw/scenarios.d.ts +3 -0
  905. package/types/content/src/data/gmw/starterDecks.d.ts +2 -0
  906. package/types/content/src/data/gob/cards.d.ts +3 -0
  907. package/types/content/src/data/gob/encounterSets.d.ts +2 -0
  908. package/types/content/src/data/gob/index.d.ts +6 -0
  909. package/types/content/src/data/gob/packs.d.ts +4 -0
  910. package/types/content/src/data/gob/provenance.d.ts +4 -0
  911. package/types/content/src/data/gob/scenarios.d.ts +3 -0
  912. package/types/content/src/data/gob/starterDecks.d.ts +2 -0
  913. package/types/content/src/data/hercules/cards.d.ts +3 -0
  914. package/types/content/src/data/hercules/encounterSets.d.ts +2 -0
  915. package/types/content/src/data/hercules/index.d.ts +6 -0
  916. package/types/content/src/data/hercules/packs.d.ts +4 -0
  917. package/types/content/src/data/hercules/provenance.d.ts +4 -0
  918. package/types/content/src/data/hercules/scenarios.d.ts +2 -0
  919. package/types/content/src/data/hercules/starterDecks.d.ts +2 -0
  920. package/types/content/src/data/hlk/cards.d.ts +3 -0
  921. package/types/content/src/data/hlk/encounterSets.d.ts +2 -0
  922. package/types/content/src/data/hlk/index.d.ts +6 -0
  923. package/types/content/src/data/hlk/packs.d.ts +4 -0
  924. package/types/content/src/data/hlk/provenance.d.ts +4 -0
  925. package/types/content/src/data/hlk/scenarios.d.ts +2 -0
  926. package/types/content/src/data/hlk/starterDecks.d.ts +2 -0
  927. package/types/content/src/data/hood/cards.d.ts +3 -0
  928. package/types/content/src/data/hood/encounterSets.d.ts +2 -0
  929. package/types/content/src/data/hood/index.d.ts +6 -0
  930. package/types/content/src/data/hood/packs.d.ts +4 -0
  931. package/types/content/src/data/hood/provenance.d.ts +4 -0
  932. package/types/content/src/data/hood/scenarios.d.ts +3 -0
  933. package/types/content/src/data/hood/starterDecks.d.ts +2 -0
  934. package/types/content/src/data/iceman/cards.d.ts +3 -0
  935. package/types/content/src/data/iceman/encounterSets.d.ts +2 -0
  936. package/types/content/src/data/iceman/index.d.ts +6 -0
  937. package/types/content/src/data/iceman/packs.d.ts +4 -0
  938. package/types/content/src/data/iceman/provenance.d.ts +4 -0
  939. package/types/content/src/data/iceman/scenarios.d.ts +2 -0
  940. package/types/content/src/data/iceman/starterDecks.d.ts +2 -0
  941. package/types/content/src/data/index.d.ts +268 -0
  942. package/types/content/src/data/iron_fist/cards.d.ts +3 -0
  943. package/types/content/src/data/iron_fist/encounterSets.d.ts +2 -0
  944. package/types/content/src/data/iron_fist/index.d.ts +6 -0
  945. package/types/content/src/data/iron_fist/packs.d.ts +4 -0
  946. package/types/content/src/data/iron_fist/provenance.d.ts +4 -0
  947. package/types/content/src/data/iron_fist/scenarios.d.ts +2 -0
  948. package/types/content/src/data/iron_fist/starterDecks.d.ts +2 -0
  949. package/types/content/src/data/ironheart/cards.d.ts +3 -0
  950. package/types/content/src/data/ironheart/encounterSets.d.ts +2 -0
  951. package/types/content/src/data/ironheart/index.d.ts +6 -0
  952. package/types/content/src/data/ironheart/packs.d.ts +4 -0
  953. package/types/content/src/data/ironheart/provenance.d.ts +4 -0
  954. package/types/content/src/data/ironheart/scenarios.d.ts +2 -0
  955. package/types/content/src/data/ironheart/starterDecks.d.ts +2 -0
  956. package/types/content/src/data/jj/cards.d.ts +3 -0
  957. package/types/content/src/data/jj/encounterSets.d.ts +2 -0
  958. package/types/content/src/data/jj/index.d.ts +6 -0
  959. package/types/content/src/data/jj/packs.d.ts +4 -0
  960. package/types/content/src/data/jj/provenance.d.ts +4 -0
  961. package/types/content/src/data/jj/scenarios.d.ts +2 -0
  962. package/types/content/src/data/jj/starterDecks.d.ts +2 -0
  963. package/types/content/src/data/jubilee/cards.d.ts +3 -0
  964. package/types/content/src/data/jubilee/encounterSets.d.ts +2 -0
  965. package/types/content/src/data/jubilee/index.d.ts +6 -0
  966. package/types/content/src/data/jubilee/packs.d.ts +4 -0
  967. package/types/content/src/data/jubilee/provenance.d.ts +4 -0
  968. package/types/content/src/data/jubilee/scenarios.d.ts +2 -0
  969. package/types/content/src/data/jubilee/starterDecks.d.ts +2 -0
  970. package/types/content/src/data/luke_cage/cards.d.ts +3 -0
  971. package/types/content/src/data/luke_cage/encounterSets.d.ts +2 -0
  972. package/types/content/src/data/luke_cage/index.d.ts +6 -0
  973. package/types/content/src/data/luke_cage/packs.d.ts +4 -0
  974. package/types/content/src/data/luke_cage/provenance.d.ts +4 -0
  975. package/types/content/src/data/luke_cage/scenarios.d.ts +2 -0
  976. package/types/content/src/data/luke_cage/starterDecks.d.ts +2 -0
  977. package/types/content/src/data/magneto/cards.d.ts +3 -0
  978. package/types/content/src/data/magneto/encounterSets.d.ts +2 -0
  979. package/types/content/src/data/magneto/index.d.ts +6 -0
  980. package/types/content/src/data/magneto/packs.d.ts +4 -0
  981. package/types/content/src/data/magneto/provenance.d.ts +4 -0
  982. package/types/content/src/data/magneto/scenarios.d.ts +2 -0
  983. package/types/content/src/data/magneto/starterDecks.d.ts +2 -0
  984. package/types/content/src/data/mojo/campaign.d.ts +15 -0
  985. package/types/content/src/data/mojo/cards.d.ts +3 -0
  986. package/types/content/src/data/mojo/encounterSets.d.ts +2 -0
  987. package/types/content/src/data/mojo/index.d.ts +7 -0
  988. package/types/content/src/data/mojo/packs.d.ts +4 -0
  989. package/types/content/src/data/mojo/provenance.d.ts +4 -0
  990. package/types/content/src/data/mojo/scenarios.d.ts +3 -0
  991. package/types/content/src/data/mojo/starterDecks.d.ts +2 -0
  992. package/types/content/src/data/msm/cards.d.ts +3 -0
  993. package/types/content/src/data/msm/encounterSets.d.ts +2 -0
  994. package/types/content/src/data/msm/index.d.ts +6 -0
  995. package/types/content/src/data/msm/packs.d.ts +4 -0
  996. package/types/content/src/data/msm/provenance.d.ts +4 -0
  997. package/types/content/src/data/msm/scenarios.d.ts +2 -0
  998. package/types/content/src/data/msm/starterDecks.d.ts +2 -0
  999. package/types/content/src/data/mts/campaign.d.ts +17 -0
  1000. package/types/content/src/data/mts/cards.d.ts +3 -0
  1001. package/types/content/src/data/mts/encounterSets.d.ts +2 -0
  1002. package/types/content/src/data/mts/index.d.ts +7 -0
  1003. package/types/content/src/data/mts/packs.d.ts +4 -0
  1004. package/types/content/src/data/mts/provenance.d.ts +4 -0
  1005. package/types/content/src/data/mts/scenarios.d.ts +3 -0
  1006. package/types/content/src/data/mts/starterDecks.d.ts +2 -0
  1007. package/types/content/src/data/mut_gen/campaign.d.ts +22 -0
  1008. package/types/content/src/data/mut_gen/cards.d.ts +3 -0
  1009. package/types/content/src/data/mut_gen/encounterSets.d.ts +2 -0
  1010. package/types/content/src/data/mut_gen/index.d.ts +7 -0
  1011. package/types/content/src/data/mut_gen/packs.d.ts +4 -0
  1012. package/types/content/src/data/mut_gen/provenance.d.ts +4 -0
  1013. package/types/content/src/data/mut_gen/scenarios.d.ts +3 -0
  1014. package/types/content/src/data/mut_gen/starterDecks.d.ts +2 -0
  1015. package/types/content/src/data/ncrawler/cards.d.ts +3 -0
  1016. package/types/content/src/data/ncrawler/encounterSets.d.ts +2 -0
  1017. package/types/content/src/data/ncrawler/index.d.ts +6 -0
  1018. package/types/content/src/data/ncrawler/packs.d.ts +4 -0
  1019. package/types/content/src/data/ncrawler/provenance.d.ts +4 -0
  1020. package/types/content/src/data/ncrawler/scenarios.d.ts +2 -0
  1021. package/types/content/src/data/ncrawler/starterDecks.d.ts +2 -0
  1022. package/types/content/src/data/nebu/cards.d.ts +3 -0
  1023. package/types/content/src/data/nebu/encounterSets.d.ts +2 -0
  1024. package/types/content/src/data/nebu/index.d.ts +6 -0
  1025. package/types/content/src/data/nebu/packs.d.ts +4 -0
  1026. package/types/content/src/data/nebu/provenance.d.ts +4 -0
  1027. package/types/content/src/data/nebu/scenarios.d.ts +2 -0
  1028. package/types/content/src/data/nebu/starterDecks.d.ts +2 -0
  1029. package/types/content/src/data/next_evol/campaign.d.ts +18 -0
  1030. package/types/content/src/data/next_evol/cards.d.ts +3 -0
  1031. package/types/content/src/data/next_evol/encounterSets.d.ts +2 -0
  1032. package/types/content/src/data/next_evol/index.d.ts +7 -0
  1033. package/types/content/src/data/next_evol/packs.d.ts +4 -0
  1034. package/types/content/src/data/next_evol/provenance.d.ts +4 -0
  1035. package/types/content/src/data/next_evol/scenarios.d.ts +3 -0
  1036. package/types/content/src/data/next_evol/starterDecks.d.ts +2 -0
  1037. package/types/content/src/data/nova/cards.d.ts +3 -0
  1038. package/types/content/src/data/nova/encounterSets.d.ts +2 -0
  1039. package/types/content/src/data/nova/index.d.ts +6 -0
  1040. package/types/content/src/data/nova/packs.d.ts +4 -0
  1041. package/types/content/src/data/nova/provenance.d.ts +4 -0
  1042. package/types/content/src/data/nova/scenarios.d.ts +2 -0
  1043. package/types/content/src/data/nova/starterDecks.d.ts +2 -0
  1044. package/types/content/src/data/phoenix/cards.d.ts +3 -0
  1045. package/types/content/src/data/phoenix/encounterSets.d.ts +2 -0
  1046. package/types/content/src/data/phoenix/index.d.ts +6 -0
  1047. package/types/content/src/data/phoenix/packs.d.ts +4 -0
  1048. package/types/content/src/data/phoenix/provenance.d.ts +4 -0
  1049. package/types/content/src/data/phoenix/scenarios.d.ts +2 -0
  1050. package/types/content/src/data/phoenix/starterDecks.d.ts +2 -0
  1051. package/types/content/src/data/pool-version.d.ts +51 -0
  1052. package/types/content/src/data/psylocke/cards.d.ts +3 -0
  1053. package/types/content/src/data/psylocke/encounterSets.d.ts +2 -0
  1054. package/types/content/src/data/psylocke/index.d.ts +6 -0
  1055. package/types/content/src/data/psylocke/packs.d.ts +4 -0
  1056. package/types/content/src/data/psylocke/provenance.d.ts +4 -0
  1057. package/types/content/src/data/psylocke/scenarios.d.ts +2 -0
  1058. package/types/content/src/data/psylocke/starterDecks.d.ts +2 -0
  1059. package/types/content/src/data/qsv/cards.d.ts +3 -0
  1060. package/types/content/src/data/qsv/encounterSets.d.ts +2 -0
  1061. package/types/content/src/data/qsv/index.d.ts +6 -0
  1062. package/types/content/src/data/qsv/packs.d.ts +4 -0
  1063. package/types/content/src/data/qsv/provenance.d.ts +4 -0
  1064. package/types/content/src/data/qsv/scenarios.d.ts +2 -0
  1065. package/types/content/src/data/qsv/starterDecks.d.ts +2 -0
  1066. package/types/content/src/data/rogue/cards.d.ts +3 -0
  1067. package/types/content/src/data/rogue/encounterSets.d.ts +2 -0
  1068. package/types/content/src/data/rogue/index.d.ts +6 -0
  1069. package/types/content/src/data/rogue/packs.d.ts +4 -0
  1070. package/types/content/src/data/rogue/provenance.d.ts +4 -0
  1071. package/types/content/src/data/rogue/scenarios.d.ts +2 -0
  1072. package/types/content/src/data/rogue/starterDecks.d.ts +2 -0
  1073. package/types/content/src/data/ron/cards.d.ts +3 -0
  1074. package/types/content/src/data/ron/encounterSets.d.ts +2 -0
  1075. package/types/content/src/data/ron/index.d.ts +6 -0
  1076. package/types/content/src/data/ron/packs.d.ts +4 -0
  1077. package/types/content/src/data/ron/provenance.d.ts +4 -0
  1078. package/types/content/src/data/ron/scenarios.d.ts +2 -0
  1079. package/types/content/src/data/ron/starterDecks.d.ts +2 -0
  1080. package/types/content/src/data/scw/cards.d.ts +3 -0
  1081. package/types/content/src/data/scw/encounterSets.d.ts +2 -0
  1082. package/types/content/src/data/scw/index.d.ts +6 -0
  1083. package/types/content/src/data/scw/packs.d.ts +4 -0
  1084. package/types/content/src/data/scw/provenance.d.ts +4 -0
  1085. package/types/content/src/data/scw/scenarios.d.ts +2 -0
  1086. package/types/content/src/data/scw/starterDecks.d.ts +2 -0
  1087. package/types/content/src/data/shadowland/campaign.d.ts +16 -0
  1088. package/types/content/src/data/shadowland/cards.d.ts +3 -0
  1089. package/types/content/src/data/shadowland/encounterSets.d.ts +2 -0
  1090. package/types/content/src/data/shadowland/index.d.ts +7 -0
  1091. package/types/content/src/data/shadowland/packs.d.ts +4 -0
  1092. package/types/content/src/data/shadowland/provenance.d.ts +4 -0
  1093. package/types/content/src/data/shadowland/scenarios.d.ts +3 -0
  1094. package/types/content/src/data/shadowland/starterDecks.d.ts +2 -0
  1095. package/types/content/src/data/silk/cards.d.ts +3 -0
  1096. package/types/content/src/data/silk/encounterSets.d.ts +2 -0
  1097. package/types/content/src/data/silk/index.d.ts +6 -0
  1098. package/types/content/src/data/silk/packs.d.ts +4 -0
  1099. package/types/content/src/data/silk/provenance.d.ts +4 -0
  1100. package/types/content/src/data/silk/scenarios.d.ts +2 -0
  1101. package/types/content/src/data/silk/starterDecks.d.ts +2 -0
  1102. package/types/content/src/data/sm/campaign.d.ts +22 -0
  1103. package/types/content/src/data/sm/cards.d.ts +3 -0
  1104. package/types/content/src/data/sm/encounterSets.d.ts +2 -0
  1105. package/types/content/src/data/sm/index.d.ts +7 -0
  1106. package/types/content/src/data/sm/packs.d.ts +4 -0
  1107. package/types/content/src/data/sm/provenance.d.ts +4 -0
  1108. package/types/content/src/data/sm/scenarios.d.ts +3 -0
  1109. package/types/content/src/data/sm/starterDecks.d.ts +2 -0
  1110. package/types/content/src/data/spdr/cards.d.ts +3 -0
  1111. package/types/content/src/data/spdr/encounterSets.d.ts +2 -0
  1112. package/types/content/src/data/spdr/index.d.ts +6 -0
  1113. package/types/content/src/data/spdr/packs.d.ts +4 -0
  1114. package/types/content/src/data/spdr/provenance.d.ts +4 -0
  1115. package/types/content/src/data/spdr/scenarios.d.ts +2 -0
  1116. package/types/content/src/data/spdr/starterDecks.d.ts +2 -0
  1117. package/types/content/src/data/spiderham/cards.d.ts +3 -0
  1118. package/types/content/src/data/spiderham/encounterSets.d.ts +2 -0
  1119. package/types/content/src/data/spiderham/index.d.ts +6 -0
  1120. package/types/content/src/data/spiderham/packs.d.ts +4 -0
  1121. package/types/content/src/data/spiderham/provenance.d.ts +4 -0
  1122. package/types/content/src/data/spiderham/scenarios.d.ts +2 -0
  1123. package/types/content/src/data/spiderham/starterDecks.d.ts +2 -0
  1124. package/types/content/src/data/stld/cards.d.ts +3 -0
  1125. package/types/content/src/data/stld/encounterSets.d.ts +2 -0
  1126. package/types/content/src/data/stld/index.d.ts +6 -0
  1127. package/types/content/src/data/stld/packs.d.ts +4 -0
  1128. package/types/content/src/data/stld/provenance.d.ts +4 -0
  1129. package/types/content/src/data/stld/scenarios.d.ts +2 -0
  1130. package/types/content/src/data/stld/starterDecks.d.ts +2 -0
  1131. package/types/content/src/data/storm/cards.d.ts +3 -0
  1132. package/types/content/src/data/storm/encounterSets.d.ts +2 -0
  1133. package/types/content/src/data/storm/index.d.ts +6 -0
  1134. package/types/content/src/data/storm/packs.d.ts +4 -0
  1135. package/types/content/src/data/storm/provenance.d.ts +4 -0
  1136. package/types/content/src/data/storm/scenarios.d.ts +2 -0
  1137. package/types/content/src/data/storm/starterDecks.d.ts +2 -0
  1138. package/types/content/src/data/synthezoid/cards.d.ts +3 -0
  1139. package/types/content/src/data/synthezoid/encounterSets.d.ts +2 -0
  1140. package/types/content/src/data/synthezoid/index.d.ts +6 -0
  1141. package/types/content/src/data/synthezoid/packs.d.ts +4 -0
  1142. package/types/content/src/data/synthezoid/provenance.d.ts +4 -0
  1143. package/types/content/src/data/synthezoid/scenarios.d.ts +3 -0
  1144. package/types/content/src/data/synthezoid/starterDecks.d.ts +2 -0
  1145. package/types/content/src/data/thor/cards.d.ts +3 -0
  1146. package/types/content/src/data/thor/encounterSets.d.ts +2 -0
  1147. package/types/content/src/data/thor/index.d.ts +6 -0
  1148. package/types/content/src/data/thor/packs.d.ts +4 -0
  1149. package/types/content/src/data/thor/provenance.d.ts +4 -0
  1150. package/types/content/src/data/thor/scenarios.d.ts +2 -0
  1151. package/types/content/src/data/thor/starterDecks.d.ts +2 -0
  1152. package/types/content/src/data/toafk/cards.d.ts +3 -0
  1153. package/types/content/src/data/toafk/encounterSets.d.ts +2 -0
  1154. package/types/content/src/data/toafk/index.d.ts +6 -0
  1155. package/types/content/src/data/toafk/packs.d.ts +4 -0
  1156. package/types/content/src/data/toafk/provenance.d.ts +4 -0
  1157. package/types/content/src/data/toafk/scenarios.d.ts +3 -0
  1158. package/types/content/src/data/toafk/starterDecks.d.ts +2 -0
  1159. package/types/content/src/data/trors/campaign.d.ts +15 -0
  1160. package/types/content/src/data/trors/cards.d.ts +3 -0
  1161. package/types/content/src/data/trors/encounterSets.d.ts +2 -0
  1162. package/types/content/src/data/trors/index.d.ts +7 -0
  1163. package/types/content/src/data/trors/packs.d.ts +4 -0
  1164. package/types/content/src/data/trors/provenance.d.ts +4 -0
  1165. package/types/content/src/data/trors/scenarios.d.ts +3 -0
  1166. package/types/content/src/data/trors/starterDecks.d.ts +2 -0
  1167. package/types/content/src/data/tt/cards.d.ts +3 -0
  1168. package/types/content/src/data/tt/encounterSets.d.ts +2 -0
  1169. package/types/content/src/data/tt/index.d.ts +6 -0
  1170. package/types/content/src/data/tt/packs.d.ts +4 -0
  1171. package/types/content/src/data/tt/provenance.d.ts +4 -0
  1172. package/types/content/src/data/tt/scenarios.d.ts +3 -0
  1173. package/types/content/src/data/tt/starterDecks.d.ts +2 -0
  1174. package/types/content/src/data/twc/cards.d.ts +3 -0
  1175. package/types/content/src/data/twc/encounterSets.d.ts +2 -0
  1176. package/types/content/src/data/twc/index.d.ts +6 -0
  1177. package/types/content/src/data/twc/packs.d.ts +4 -0
  1178. package/types/content/src/data/twc/provenance.d.ts +4 -0
  1179. package/types/content/src/data/twc/scenarios.d.ts +3 -0
  1180. package/types/content/src/data/twc/starterDecks.d.ts +2 -0
  1181. package/types/content/src/data/types.d.ts +29 -0
  1182. package/types/content/src/data/valk/cards.d.ts +3 -0
  1183. package/types/content/src/data/valk/encounterSets.d.ts +2 -0
  1184. package/types/content/src/data/valk/index.d.ts +6 -0
  1185. package/types/content/src/data/valk/packs.d.ts +4 -0
  1186. package/types/content/src/data/valk/provenance.d.ts +4 -0
  1187. package/types/content/src/data/valk/scenarios.d.ts +2 -0
  1188. package/types/content/src/data/valk/starterDecks.d.ts +2 -0
  1189. package/types/content/src/data/vision/cards.d.ts +3 -0
  1190. package/types/content/src/data/vision/encounterSets.d.ts +2 -0
  1191. package/types/content/src/data/vision/index.d.ts +6 -0
  1192. package/types/content/src/data/vision/packs.d.ts +4 -0
  1193. package/types/content/src/data/vision/provenance.d.ts +4 -0
  1194. package/types/content/src/data/vision/scenarios.d.ts +2 -0
  1195. package/types/content/src/data/vision/starterDecks.d.ts +2 -0
  1196. package/types/content/src/data/vnm/cards.d.ts +3 -0
  1197. package/types/content/src/data/vnm/encounterSets.d.ts +2 -0
  1198. package/types/content/src/data/vnm/index.d.ts +6 -0
  1199. package/types/content/src/data/vnm/packs.d.ts +4 -0
  1200. package/types/content/src/data/vnm/provenance.d.ts +4 -0
  1201. package/types/content/src/data/vnm/scenarios.d.ts +2 -0
  1202. package/types/content/src/data/vnm/starterDecks.d.ts +2 -0
  1203. package/types/content/src/data/warm/cards.d.ts +3 -0
  1204. package/types/content/src/data/warm/encounterSets.d.ts +2 -0
  1205. package/types/content/src/data/warm/index.d.ts +6 -0
  1206. package/types/content/src/data/warm/packs.d.ts +4 -0
  1207. package/types/content/src/data/warm/provenance.d.ts +4 -0
  1208. package/types/content/src/data/warm/scenarios.d.ts +2 -0
  1209. package/types/content/src/data/warm/starterDecks.d.ts +2 -0
  1210. package/types/content/src/data/winter/cards.d.ts +3 -0
  1211. package/types/content/src/data/winter/encounterSets.d.ts +2 -0
  1212. package/types/content/src/data/winter/index.d.ts +6 -0
  1213. package/types/content/src/data/winter/packs.d.ts +4 -0
  1214. package/types/content/src/data/winter/provenance.d.ts +4 -0
  1215. package/types/content/src/data/winter/scenarios.d.ts +2 -0
  1216. package/types/content/src/data/winter/starterDecks.d.ts +2 -0
  1217. package/types/content/src/data/wolv/cards.d.ts +3 -0
  1218. package/types/content/src/data/wolv/encounterSets.d.ts +2 -0
  1219. package/types/content/src/data/wolv/index.d.ts +6 -0
  1220. package/types/content/src/data/wolv/packs.d.ts +4 -0
  1221. package/types/content/src/data/wolv/provenance.d.ts +4 -0
  1222. package/types/content/src/data/wolv/scenarios.d.ts +2 -0
  1223. package/types/content/src/data/wolv/starterDecks.d.ts +2 -0
  1224. package/types/content/src/data/wonder_man/cards.d.ts +3 -0
  1225. package/types/content/src/data/wonder_man/encounterSets.d.ts +2 -0
  1226. package/types/content/src/data/wonder_man/index.d.ts +6 -0
  1227. package/types/content/src/data/wonder_man/packs.d.ts +4 -0
  1228. package/types/content/src/data/wonder_man/provenance.d.ts +4 -0
  1229. package/types/content/src/data/wonder_man/scenarios.d.ts +2 -0
  1230. package/types/content/src/data/wonder_man/starterDecks.d.ts +2 -0
  1231. package/types/content/src/data/wsp/cards.d.ts +3 -0
  1232. package/types/content/src/data/wsp/encounterSets.d.ts +2 -0
  1233. package/types/content/src/data/wsp/index.d.ts +6 -0
  1234. package/types/content/src/data/wsp/packs.d.ts +4 -0
  1235. package/types/content/src/data/wsp/provenance.d.ts +4 -0
  1236. package/types/content/src/data/wsp/scenarios.d.ts +2 -0
  1237. package/types/content/src/data/wsp/starterDecks.d.ts +2 -0
  1238. package/types/content/src/data/x23/cards.d.ts +3 -0
  1239. package/types/content/src/data/x23/encounterSets.d.ts +2 -0
  1240. package/types/content/src/data/x23/index.d.ts +6 -0
  1241. package/types/content/src/data/x23/packs.d.ts +4 -0
  1242. package/types/content/src/data/x23/provenance.d.ts +4 -0
  1243. package/types/content/src/data/x23/scenarios.d.ts +2 -0
  1244. package/types/content/src/data/x23/starterDecks.d.ts +2 -0
  1245. package/types/content/src/import/aspect-cards.d.ts +10 -0
  1246. package/types/content/src/import/from-marvelcdb-json.d.ts +65 -0
  1247. package/types/content/src/import/from-text.d.ts +38 -0
  1248. package/types/content/src/import/index.d.ts +16 -0
  1249. package/types/content/src/import/pool-index.d.ts +53 -0
  1250. package/types/content/src/import/to-text.d.ts +19 -0
  1251. package/types/content/src/import/types.d.ts +95 -0
  1252. package/types/content/src/import/url.d.ts +20 -0
  1253. package/types/content/src/index.d.ts +9 -0
  1254. package/types/content/src/schema/abilities.d.ts +20 -0
  1255. package/types/content/src/schema/aspects.d.ts +18 -0
  1256. package/types/content/src/schema/cards/attachment-host.d.ts +244 -0
  1257. package/types/content/src/schema/cards/base.d.ts +83 -0
  1258. package/types/content/src/schema/cards/encounter-cards.d.ts +191 -0
  1259. package/types/content/src/schema/cards/evidence.d.ts +59 -0
  1260. package/types/content/src/schema/cards/identity.d.ts +302 -0
  1261. package/types/content/src/schema/cards/index.d.ts +18 -0
  1262. package/types/content/src/schema/cards/player-cards.d.ts +234 -0
  1263. package/types/content/src/schema/cards/schemes.d.ts +156 -0
  1264. package/types/content/src/schema/cards/villain.d.ts +128 -0
  1265. package/types/content/src/schema/common.d.ts +108 -0
  1266. package/types/content/src/schema/decks.d.ts +83 -0
  1267. package/types/content/src/schema/glossary.d.ts +174 -0
  1268. package/types/content/src/schema/house-rules.d.ts +49 -0
  1269. package/types/content/src/schema/ids.d.ts +53 -0
  1270. package/types/content/src/schema/images.d.ts +25 -0
  1271. package/types/content/src/schema/index.d.ts +14 -0
  1272. package/types/content/src/schema/keywords.d.ts +180 -0
  1273. package/types/content/src/schema/modes.d.ts +132 -0
  1274. package/types/content/src/schema/packs.d.ts +509 -0
  1275. package/types/content/src/schema/sets.d.ts +712 -0
  1276. package/types/content/src/schema/validation.d.ts +103 -0
  1277. package/types/engine/src/abilities.d.ts +4417 -0
  1278. package/types/engine/src/accusation.d.ts +37 -0
  1279. package/types/engine/src/actions.d.ts +1239 -0
  1280. package/types/engine/src/attach-cost.d.ts +69 -0
  1281. package/types/engine/src/attachment-hosts.d.ts +67 -0
  1282. package/types/engine/src/attack-cost.d.ts +94 -0
  1283. package/types/engine/src/basic-power-uses.d.ts +68 -0
  1284. package/types/engine/src/campaign/log.d.ts +88 -0
  1285. package/types/engine/src/campaign/ops.d.ts +188 -0
  1286. package/types/engine/src/campaign/result.d.ts +28 -0
  1287. package/types/engine/src/campaign/runner.d.ts +190 -0
  1288. package/types/engine/src/campaign/seal.d.ts +41 -0
  1289. package/types/engine/src/campaign-state.d.ts +75 -0
  1290. package/types/engine/src/campaign.d.ts +1629 -0
  1291. package/types/engine/src/card-types.d.ts +16 -0
  1292. package/types/engine/src/change-form-cost.d.ts +54 -0
  1293. package/types/engine/src/choices.d.ts +721 -0
  1294. package/types/engine/src/choose-target-cost.d.ts +29 -0
  1295. package/types/engine/src/commands.d.ts +288 -0
  1296. package/types/engine/src/cost-damage.d.ts +116 -0
  1297. package/types/engine/src/counter-limit.d.ts +14 -0
  1298. package/types/engine/src/counter-types.d.ts +71 -0
  1299. package/types/engine/src/ctx.d.ts +132 -0
  1300. package/types/engine/src/damage-threshold.d.ts +15 -0
  1301. package/types/engine/src/deal-to-cost.d.ts +25 -0
  1302. package/types/engine/src/deck-discard-choice-cost.d.ts +49 -0
  1303. package/types/engine/src/deck-top.d.ts +39 -0
  1304. package/types/engine/src/deck.d.ts +337 -0
  1305. package/types/engine/src/defend-preview.d.ts +144 -0
  1306. package/types/engine/src/defense-claim.d.ts +84 -0
  1307. package/types/engine/src/each-player-cost.d.ts +41 -0
  1308. package/types/engine/src/effects.d.ts +767 -0
  1309. package/types/engine/src/encounter-discard-cost.d.ts +95 -0
  1310. package/types/engine/src/encounter-look-cost.d.ts +44 -0
  1311. package/types/engine/src/encounter-search-cost.d.ts +35 -0
  1312. package/types/engine/src/enemy-attack-cost.d.ts +62 -0
  1313. package/types/engine/src/engine.d.ts +67 -0
  1314. package/types/engine/src/entered-since.d.ts +86 -0
  1315. package/types/engine/src/errors.d.ts +60 -0
  1316. package/types/engine/src/events.d.ts +2682 -0
  1317. package/types/engine/src/flow.d.ts +27 -0
  1318. package/types/engine/src/form-change-cost.d.ts +68 -0
  1319. package/types/engine/src/form-change-target.d.ts +21 -0
  1320. package/types/engine/src/game-fingerprint.d.ts +41 -0
  1321. package/types/engine/src/game-mode.d.ts +14 -0
  1322. package/types/engine/src/heal-cost.d.ts +32 -0
  1323. package/types/engine/src/hidden-pile-state.d.ts +38 -0
  1324. package/types/engine/src/hidden-reverse.d.ts +33 -0
  1325. package/types/engine/src/ids.d.ts +39 -0
  1326. package/types/engine/src/index.d.ts +122 -0
  1327. package/types/engine/src/keyword-abilities.d.ts +36 -0
  1328. package/types/engine/src/keywords.d.ts +169 -0
  1329. package/types/engine/src/lasting.d.ts +382 -0
  1330. package/types/engine/src/legal.d.ts +434 -0
  1331. package/types/engine/src/linked.d.ts +25 -0
  1332. package/types/engine/src/modifiers.d.ts +74 -0
  1333. package/types/engine/src/outside-facts.d.ts +33 -0
  1334. package/types/engine/src/payable.d.ts +56 -0
  1335. package/types/engine/src/per-player-main-schemes.d.ts +63 -0
  1336. package/types/engine/src/pod.d.ts +189 -0
  1337. package/types/engine/src/preview.d.ts +105 -0
  1338. package/types/engine/src/query.d.ts +553 -0
  1339. package/types/engine/src/ready-cards-cost.d.ts +41 -0
  1340. package/types/engine/src/remove-threat-cost.d.ts +74 -0
  1341. package/types/engine/src/resolve/ability.d.ts +40 -0
  1342. package/types/engine/src/resolve/accusation.d.ts +39 -0
  1343. package/types/engine/src/resolve/apply-effect.d.ts +57 -0
  1344. package/types/engine/src/resolve/attach.d.ts +153 -0
  1345. package/types/engine/src/resolve/attack-ability.d.ts +610 -0
  1346. package/types/engine/src/resolve/basic-power-by.d.ts +37 -0
  1347. package/types/engine/src/resolve/campaign.d.ts +30 -0
  1348. package/types/engine/src/resolve/cards.d.ts +241 -0
  1349. package/types/engine/src/resolve/collection.d.ts +31 -0
  1350. package/types/engine/src/resolve/counters-being-placed.d.ts +41 -0
  1351. package/types/engine/src/resolve/damage-group.d.ts +20 -0
  1352. package/types/engine/src/resolve/deck-discard.d.ts +71 -0
  1353. package/types/engine/src/resolve/declare-wilds.d.ts +26 -0
  1354. package/types/engine/src/resolve/defeat.d.ts +219 -0
  1355. package/types/engine/src/resolve/defeated-together.d.ts +76 -0
  1356. package/types/engine/src/resolve/effects-frame.d.ts +15 -0
  1357. package/types/engine/src/resolve/enemy-activation.d.ts +273 -0
  1358. package/types/engine/src/resolve/enter-play.d.ts +177 -0
  1359. package/types/engine/src/resolve/event.d.ts +257 -0
  1360. package/types/engine/src/resolve/find.d.ts +69 -0
  1361. package/types/engine/src/resolve/frames.d.ts +148 -0
  1362. package/types/engine/src/resolve/friendly-attack.d.ts +85 -0
  1363. package/types/engine/src/resolve/game-areas.d.ts +157 -0
  1364. package/types/engine/src/resolve/hidden-hand-pick.d.ts +36 -0
  1365. package/types/engine/src/resolve/hidden-piles.d.ts +84 -0
  1366. package/types/engine/src/resolve/host-step.d.ts +10 -0
  1367. package/types/engine/src/resolve/imminent-attach.d.ts +40 -0
  1368. package/types/engine/src/resolve/index.d.ts +13 -0
  1369. package/types/engine/src/resolve/initiated-activation.d.ts +124 -0
  1370. package/types/engine/src/resolve/keyword-ignored.d.ts +45 -0
  1371. package/types/engine/src/resolve/leave-to-separate-deck.d.ts +38 -0
  1372. package/types/engine/src/resolve/main-scheme-side.d.ts +42 -0
  1373. package/types/engine/src/resolve/other-face.d.ts +34 -0
  1374. package/types/engine/src/resolve/pair-cards.d.ts +44 -0
  1375. package/types/engine/src/resolve/play-card.d.ts +23 -0
  1376. package/types/engine/src/resolve/pod.d.ts +50 -0
  1377. package/types/engine/src/resolve/put-into-play-setup.d.ts +58 -0
  1378. package/types/engine/src/resolve/rearrange.d.ts +50 -0
  1379. package/types/engine/src/resolve/report-fact.d.ts +18 -0
  1380. package/types/engine/src/resolve/reveal-hold.d.ts +45 -0
  1381. package/types/engine/src/resolve/reveal.d.ts +86 -0
  1382. package/types/engine/src/resolve/scenario-deck-top.d.ts +84 -0
  1383. package/types/engine/src/resolve/sentence-hold.d.ts +86 -0
  1384. package/types/engine/src/resolve/separate-decks.d.ts +21 -0
  1385. package/types/engine/src/resolve/sequential-damage.d.ts +23 -0
  1386. package/types/engine/src/resolve/setup-cards.d.ts +30 -0
  1387. package/types/engine/src/resolve/state-checks.d.ts +33 -0
  1388. package/types/engine/src/resolve/status-being-given.d.ts +54 -0
  1389. package/types/engine/src/resolve/status-discarded.d.ts +19 -0
  1390. package/types/engine/src/resolve/suspend.d.ts +75 -0
  1391. package/types/engine/src/resolve/swap-cards.d.ts +49 -0
  1392. package/types/engine/src/resolve/swap-main-scheme.d.ts +77 -0
  1393. package/types/engine/src/resolve/target-validity.d.ts +275 -0
  1394. package/types/engine/src/resolve/then.d.ts +27 -0
  1395. package/types/engine/src/resolve/thwart-session.d.ts +54 -0
  1396. package/types/engine/src/resolve/triggers.d.ts +91 -0
  1397. package/types/engine/src/resolve/tuck.d.ts +79 -0
  1398. package/types/engine/src/resolve/unpreventable.d.ts +40 -0
  1399. package/types/engine/src/resolve/villain-swap.d.ts +42 -0
  1400. package/types/engine/src/resolve/villainous.d.ts +150 -0
  1401. package/types/engine/src/resolve/window.d.ts +25 -0
  1402. package/types/engine/src/resolve/would-discard.d.ts +81 -0
  1403. package/types/engine/src/resolve-ability-cost.d.ts +88 -0
  1404. package/types/engine/src/resources.d.ts +232 -0
  1405. package/types/engine/src/rng.d.ts +13 -0
  1406. package/types/engine/src/rules.d.ts +874 -0
  1407. package/types/engine/src/select.d.ts +1119 -0
  1408. package/types/engine/src/separated-identity.d.ts +90 -0
  1409. package/types/engine/src/setup-steps.d.ts +84 -0
  1410. package/types/engine/src/setup.d.ts +427 -0
  1411. package/types/engine/src/spec.d.ts +7369 -0
  1412. package/types/engine/src/stack-view.d.ts +49 -0
  1413. package/types/engine/src/stack.d.ts +1340 -0
  1414. package/types/engine/src/starting.d.ts +27 -0
  1415. package/types/engine/src/state.d.ts +1603 -0
  1416. package/types/engine/src/team.d.ts +81 -0
  1417. package/types/engine/src/thwart-cost.d.ts +92 -0
  1418. package/types/engine/src/titles.d.ts +58 -0
  1419. package/types/engine/src/treat-as.d.ts +70 -0
  1420. package/types/engine/src/trigger-events.d.ts +2630 -0
  1421. package/types/engine/src/tuck-limit.d.ts +18 -0
  1422. package/types/engine/src/unique.d.ts +95 -0
  1423. package/types/engine/src/villain/audit.d.ts +71 -0
  1424. package/types/engine/src/villain/authority.d.ts +28 -0
  1425. package/types/engine/src/villain/phase.d.ts +48 -0
  1426. package/types/engine/src/visibility.d.ts +210 -0
  1427. package/types/engine/src/why-not.d.ts +80 -0
  1428. package/types/mod-sdk/npm/testing.d.ts +8 -0
  1429. package/types/mod-sdk/src/build.d.ts +59 -0
  1430. package/types/mod-sdk/src/builtin.d.ts +27 -0
  1431. package/types/mod-sdk/src/campaigns.d.ts +26 -0
  1432. package/types/mod-sdk/src/cli.d.ts +12 -0
  1433. package/types/mod-sdk/src/define.d.ts +10 -0
  1434. package/types/mod-sdk/src/features.d.ts +44 -0
  1435. package/types/mod-sdk/src/game.d.ts +66 -0
  1436. package/types/mod-sdk/src/import-marvelcdb.d.ts +99 -0
  1437. package/types/mod-sdk/src/index.d.ts +17 -0
  1438. package/types/mod-sdk/src/loader.d.ts +5 -0
  1439. package/types/mod-sdk/src/obligation.d.ts +2 -0
  1440. package/types/mod-sdk/src/preview.d.ts +18 -0
  1441. package/types/mod-sdk/src/sha256.d.ts +8 -0
  1442. package/types/mod-sdk/src/smoke.d.ts +73 -0
  1443. package/types/mod-sdk/src/validate.d.ts +81 -0
@@ -0,0 +1,4417 @@
1
+ import type { AbilityId, CardId, KeywordInstance, SchemeIcon, Trait } from "../../content/src/index.js";
2
+ import type { InstanceId, PlayerId } from "./ids.js";
3
+ import type { PaidTypesRead, ResourcePool, ResourceRequirement, ResourceType, TypedResource } from "./resources.js";
4
+ import type { AbilityTimingWord, AttackKeyword, CardDestination, EffectSpec, PairLimit, PlayerRef, Predicate, SchemeValueName, StatName, StatusName, TargetCategory, TargetQuery, TargetRef, ValueSpec } from "./spec.js";
5
+ import type { Form } from "./state.js";
6
+ import type { TriggerEventKind } from "./trigger-events.js";
7
+ /**
8
+ * How an ability's card must relate to an event for the ability to trigger.
9
+ * `selfIs` covers "when *this card* is attacked / deals damage / …" and
10
+ * `playerIs` covers "…attacks *you*".
11
+ */
12
+ export interface EventPattern {
13
+ /** One event kind, or several: "After Madame Hydra schemes or attacks" → `["enemyScheme", "enemyAttack"]`. */
14
+ readonly on: TriggerEventKind | readonly TriggerEventKind[];
15
+ /**
16
+ * "After you discard **cards**, …": one answer for the whole occurrence. When several triggering conditions share a
17
+ * window (the cards one effect discarded from a deck; RRG 1.8 "Triggering Condition", p. 45) and more than one
18
+ * matches this pattern, the ability resolves once for all of them, not once for each: in the window it is one
19
+ * candidate, answering the first of them. Its effects read every matching condition's target as the slot
20
+ * `TOGETHER_TARGETS_SLOT` (`eventTarget` is the first's), so an amount "for each [icon] discarded" is counted over
21
+ * all of them and dealt once (RRG 1.8 "'For Each'", p. 20: a single target and a single instance without a
22
+ * "choose"). Read where a window gathers its candidates (`resolve/window.ts`); a lone condition is a batch of one.
23
+ */
24
+ readonly together?: true;
25
+ readonly selfIs?: "source" | "target" | "either";
26
+ readonly playerIs?: "controller";
27
+ /**
28
+ * "[enemy] attacks **you**": on an `enemyAttack` event, "you" is the attack's one player for the timing rather than
29
+ * either of the event's players. An interrupt ("When [enemy] attacks you") reads the player the attack was
30
+ * initiated against; a response ("After [enemy] attacks you") reads the player whose character defended it, who is
31
+ * the attacked player when nobody else defended (RRG 1.8 "Defend, Defense", pp. 15-16; `attackYouOf`).
32
+ */
33
+ readonly usesAttackedPlayer?: boolean;
34
+ /**
35
+ * With `playerIs: "controller"`: "you" is that player's **identity** (RRG 1.8 "You, Your", p. 49: "if the word
36
+ * 'you' can be resolved as referring to the player's identity, it must be resolved as such"), so the character the
37
+ * attack is against must be it. "After [enemy] attacks and damages you" (FFG rulings 225.1 (undated) and 226 (July 18, 2024):
38
+ * it "checks if the attacked player's identity was damaged", i.e. "after X damages you with an attack"): a
39
+ * defending ally's damage is not heard, and an overkill spill onto the identity is (its own condition, ruling
40
+ * January 11, 2026 (2)). "When a boost card on an enemy attacking you would be turned faceup" (Defiance; ruling 151,
41
+ * March 15, 2024: not while your ally defends). Read on `enemyAttack` (its target character) and on an attack's
42
+ * `boostCardTurnedFaceup` or `boostCardTurningFaceup`; any other event never matches. The p. 49 exception, "after [enemy] attacks you" (the
43
+ * attacked player even when an ally defended), is `usesAttackedPlayer` without this.
44
+ */
45
+ readonly youAreIdentity?: boolean;
46
+ readonly targetIs?: TargetQuery;
47
+ /** The event's source must match: "When Rhino attacks" → `{ categories: ["villain"] }`; "When attached enemy attacks" → `{ hostOfSelf: true }`. */
48
+ readonly sourceIs?: TargetQuery;
49
+ /**
50
+ * The event's source **or** one of its targets must match: "After **you** attack or defend" (Solid / Phased,
51
+ * `mut_gen` 32031a/b) is `{ on: ["attack", "defended"], subjectIs: your identity }`, the attacker of an `attack` and
52
+ * the defender of a `defended`, so your allies' attacks and defenses are not heard (docs/phase7-wave6.md §3.79). The
53
+ * query counterpart of `selfIs: "either"`.
54
+ */
55
+ readonly subjectIs?: TargetQuery;
56
+ readonly fromAttack?: boolean;
57
+ /**
58
+ * `true`: the damage must be an ally's consequential damage (RRG 1.8 "Consequential Damage", p. 13) — "When a
59
+ * S.H.I.E.L.D. ally would take any amount of consequential damage" (Field Agent, `sm` 27044), from an attack or a
60
+ * thwart alike. `false`: it must not be. Reads the `consequential` flag `pushConsequentialDamage` stamps on the
61
+ * `dealDamage` event, in both windows (docs/phase7-wave5.md §4.1 Q62). On a `characterDefeated` event it reads the
62
+ * defeat's own flag, the defeating damage's: "After an ally is defeated by consequential damage" (Med Lab, `rogue`
63
+ * 38028; docs/phase7-wave6.md §3.57). Any other event kind never matches.
64
+ */
65
+ readonly consequential?: boolean;
66
+ /**
67
+ * `true`: the damage must be indirect damage (RRG 1.8 "Indirect Damage", p. 24), one character's assigned share of
68
+ * it — "After a friendly character takes any amount of indirect damage" (with `requireResults: { amount: 1 }` for
69
+ * "takes"). `false`: it must not be. Reads the `indirect` flag stamped on each share's `dealDamage` event where the
70
+ * shares are dealt, in both windows, so it hears an ability's indirect damage, an indirect-damage cost and an enemy
71
+ * attack that deals indirect damage alike. Any other event kind never matches.
72
+ */
73
+ readonly indirect?: boolean;
74
+ /**
75
+ * Results the event must have produced, read at response time: "after X
76
+ * attacks and damages" → `{ damage: 1 }`, "…and defeats" → `{ defeated: 1 }`,
77
+ * "…undefended" → `{ undefended: 1 }`. Keys are the event's `results`.
78
+ */
79
+ readonly requireResults?: Readonly<Record<string, number>>;
80
+ /**
81
+ * The upper-bound counterpart of `requireResults`: each result must be **at most** this, read at the same moment.
82
+ * `{ damage: 0 }` is "and take no damage" / "if it dealt no damage" — a bound `requireResults` and `eventAtLeast`,
83
+ * both minimums, cannot express. A missing result reads as 0 and therefore satisfies any non-negative bound.
84
+ *
85
+ * It is part of the *trigger condition*, so an ability whose bound fails is never offered and its cost is never
86
+ * paid — which is what "Response: After you defend against an attack **and take no damage**, exhaust this →" needs
87
+ * (FAQ "Unflappable (#20)", RRG 1.8 p. 60: "The cost of the ability on Unflappable only requires that the
88
+ * defending identity take no damage during step 4 of the enemy attack"). Modeling the same sentence as an
89
+ * effect-level `if` would charge the cost first, which is a different card.
90
+ */
91
+ readonly resultsAtMost?: Readonly<Record<string, number>>;
92
+ /** "After you make a basic attack" → `basic`; "(attack)" abilities → `ability`. */
93
+ readonly attackKind?: "basic" | "ability";
94
+ /**
95
+ * The attack was made by this ability (or one of these), read from the `attack` event's `sourceAbilityId`: "When you
96
+ * use your 'Optic Blast' ability" (Full Blast, `cyclops` 33008) is `{ on: "attack", sourceAbility:
97
+ * "33001a.cyclops-constant" }`, so an "(attack)" event's attack (Ricochet Beam 33009), made by the same identity, is
98
+ * not heard. A basic attack, and any other event kind, never matches. docs/phase7-wave6.md §3.84.
99
+ */
100
+ readonly sourceAbility?: string | readonly string[];
101
+ /**
102
+ * The attack has one of these keywords: "When you make a **ranged** attack" is `["ranged"]`, "an attack that has a
103
+ * keyword (overkill, piercing, or ranged)" lists all three. **Any one** listed keyword is enough. Read with
104
+ * `attackKeywordsOf`, so the keyword may be the attacking character's (printed or granted, a grant that waited for
105
+ * its next attack included), the attack's own ("this attack gains ranged" on the card making it), or a constant
106
+ * `attackKeywords` rule's: RRG 1.8 "Ranged" (p. 36), "Piercing" (p. 32) and "Overkill" (p. 31) each describe "an
107
+ * attack with the … keyword". An `attack` event only (a player's character attacking); any other kind never matches.
108
+ *
109
+ * Read when the pattern is matched. For an interrupt that is as the attack's interrupt window opens, where a
110
+ * window's candidates are read once (docs/phase7-wave6.md §3.79): a keyword the attack gains from another interrupt
111
+ * of that window (`modifyAttack.keywords`) comes too late to trigger this one, and is not read here in either
112
+ * window. docs/phase7-wave7.md §3.59, §3.69.
113
+ */
114
+ readonly attackHas?: readonly AttackKeyword[];
115
+ /** The activation the event belongs to: "while the villain attacks" / "during a scheme activation" (boost card events). */
116
+ readonly activation?: "attack" | "scheme";
117
+ /**
118
+ * Numbers the event itself carries must be at least this, in both windows: `{ boostIcons: 1 }` for "cancel the boost
119
+ * icons on that card", which cannot trigger on a card with none (FAQ "Attacrobatics (#6)", p. 59).
120
+ *
121
+ * On a `dealDamage` response, `{ dealt: N }` is "after X deals / is dealt N or more damage" and `{ taken: N }` (the
122
+ * `amount` result under `requireResults`) "after X takes N or more damage": the two amounts RRG 1.8 "Prevent" (p. 35)
123
+ * tells apart, stamped on the resolved event (`TriggerEvent dealDamage.dealt`, `.taken`). Its `amount` is what was
124
+ * left to take once the interrupts had prevented or increased it, which is neither.
125
+ */
126
+ readonly eventAtLeast?: Readonly<Record<string, number>>;
127
+ /**
128
+ * Numbers the event itself carries must be at most this: `{ remaining: 0 }` for "When/After the last invocation counter
129
+ * is removed from here" (Fireball, `mts` 21076; Holding Cell, `aos` 50105a; docs/phase7-wave4.md §3.15). The mirror of
130
+ * `eventAtLeast`.
131
+ */
132
+ readonly eventAtMost?: Readonly<Record<string, number>>;
133
+ /**
134
+ * "When you **remove the last threat** from attached scheme" (Acute Tactility, Enhanced Olfaction; docs/phase7-
135
+ * wave11.md §3.4): a `removeThreat` interrupt that hears a pending removal that will take the scheme from some threat
136
+ * to none. Matches while the scheme's threat is above 0 and the removal's amount is at least that threat, read as the
137
+ * interrupt window opens. It also asks that nothing will stop the removal as it applies (`removalBlockedOf`: a crisis
138
+ * icon, a patrol minion, a `cannotThwart` or `threatCannotBeRemoved` rule): an engine interpretation (authority step
139
+ * 5), since no ruling says whether a removal that will be stopped "removes the last threat". RRG 1.8 "Interrupt" (p. 25): it resolves before the threat is removed, so before the side scheme's defeat
140
+ * (August 3, 2026 R1; August 13, 2026 R2). A main scheme is heard too; nothing is defeated for it. Read in an
141
+ * interrupt window only, never a response one: a response reads `requireResults: { lastThreatRemoved: 1 }`. Any
142
+ * other event kind never matches. Pair it with `playerIn` for "you remove".
143
+ */
144
+ readonly removesLastThreat?: true;
145
+ /**
146
+ * On a `removeThreat` event: nothing will stop the pending removal as it applies (`removalBlockedOf`: a crisis icon,
147
+ * a patrol minion, a `cannotThwart` or `threatCannotBeRemoved` rule), read as the interrupt window opens. A removal
148
+ * that will be stopped removes no threat, so "when a character would remove threat" does not hear it (RRG 1.8
149
+ * "'Cannot'", p. 11; "'Would'", p. 48): Traffic Jam (`fne` 60189) does not replace a removal from the main scheme
150
+ * under a crisis icon. Any other event kind is not read, so a pattern that also hears `placeThreat` keeps it.
151
+ */
152
+ readonly removalWillApply?: true;
153
+ /**
154
+ * String fields the event itself carries must equal these, in both windows — the string counterpart of
155
+ * `eventAtLeast`. `{ to: "hero" }` is "After a player changes to **hero form**" (Taskmaster 04093–04095), which
156
+ * `formChanged`'s own `to` field already records but no pattern field could read. An event without the field, or
157
+ * with a different value, never matches.
158
+ *
159
+ * Pair it with *no* `playerIs`, and the pattern is "after **a player** …" rather than "after **you** …"; the
160
+ * effect body then names them with `PlayerRef { kind: "eventPlayer" }`.
161
+ *
162
+ * A list is any one of those values: `{ power: ["attack", "thwart"] }` is "When Machine Man **attacks or thwarts**"
163
+ * (Machine Man, `vision` 26022) on `basicPowerUsing`, excluding his defense. docs/phase7-wave4.md §3.36.
164
+ */
165
+ readonly eventIs?: Readonly<Record<string, string | readonly string[]>>;
166
+ /**
167
+ * "After the enemy **with Death-Glow** is defeated" (Flight of the Valkyrior, 25008) / "after Valkyrie attacks and
168
+ * defeats the enemy that has Death-Glow attached" (Valhalla, 25004): one of the cards attached to the defeated
169
+ * character when its defeat was initiated (`characterDefeated.attachedInstanceIds`) matches. A defeat only;
170
+ * docs/phase7-wave4.md §3.22.
171
+ */
172
+ readonly targetHadAttachment?: TargetQuery;
173
+ /**
174
+ * "After another card is revealed **that gives 1 or more heroes the Unregistered trait**" (Hunting Rebel Heroes, `cw`
175
+ * 56097b; docs/phase7-wave10.md §3.16): the revealed card carries a constant grant of this trait that reaches at
176
+ * least one card in play (`cardRevealed.grantedTo`), whether or not that card already had the trait (owner decision,
177
+ * question 12 = A, provisional). A `cardRevealed` response only: the grant is read once the reveal has completed,
178
+ * with the card in play. Any other event never matches. The cards reached are `TargetRef grantedTo`.
179
+ */
180
+ readonly grantsTrait?: Trait;
181
+ /**
182
+ * With `grantsTrait`: one of the cards the grant reaches must match ("1 or more **heroes**" is a hero-form identity),
183
+ * read with this card as `self`. Without `grantsTrait` it is never read.
184
+ */
185
+ readonly grantedToIs?: TargetQuery;
186
+ /**
187
+ * The event's player (its first player subject, `eventPlayer`) must be one of these, resolved with this card as
188
+ * `self`: "After **the engaged player** generates any number of resources" (M.O.R.B.I.U.S., `spdr` 31027 errata, RRG
189
+ * 1.8 p. 68) is `{ kind: "engagedWith", of: { kind: "self" } }`. An encounter card's `playerIs: "controller"` matches
190
+ * any player, so this is how an enemy names one. docs/phase7-wave5.md §3.25.
191
+ */
192
+ readonly playerIn?: PlayerRef;
193
+ /**
194
+ * "After [this] **or** [that]": one printed ability answering either of two (or more) events, each with its own
195
+ * conditions. The event must match this pattern's own fields **and** at least one of these full patterns, so the
196
+ * window opens only when a whole alternative matches: "After Stryfe is defeated or the last threat is removed from
197
+ * this scheme" (`next_evol` 40168a) is `{ on: ["characterDefeated", "removeThreat"], anyOf: [{ on:
198
+ * "characterDefeated", targetIs: the villain }, { on: "removeThreat", selfIs: "target", requireResults: {
199
+ * lastThreatRemoved: 1 } }] }`. RRG 1.8 "Triggering Condition" (p. 45): the ability has one condition met by either
200
+ * occurrence, so it stays one ability with one limit.
201
+ *
202
+ * The outer `on` must list every kind an alternative hears (the engine reads it to decide which windows the
203
+ * ability belongs to); fields beside `anyOf` are conditions common to every alternative. `usesAttackedPlayer` is
204
+ * read from the outer pattern or from the alternatives that hear the event's kind. Alternatives may nest.
205
+ */
206
+ readonly anyOf?: readonly EventPattern[];
207
+ /**
208
+ * On `cardPlayed` only: the card that played it (`TriggerEvent cardPlayed.via`) must match, read with this card as
209
+ * `self` wherever the via card now is (a discarded Photographic Reflexes is in its owner's discard pile).
210
+ * docs/phase7-wave11.md §3.9. Any other event, and a play with no `via`, never matches.
211
+ */
212
+ readonly playedVia?: TargetQuery;
213
+ /**
214
+ * On `cardPlayed` only: the play must not have been made via a card matching this. "You cannot trigger Echo's
215
+ * 'Watch and Learn' ability for that event" (Photographic Reflexes, `fne` 60040a/b/c; docs/phase7-wave11.md §3.9) is
216
+ * Watch and Learn's own pattern with `notPlayedVia` naming Photographic Reflexes, so the ability is not offered and
217
+ * its cost is not paid. A play with no `via` always passes; any other event kind is not read.
218
+ */
219
+ readonly notPlayedVia?: TargetQuery;
220
+ /**
221
+ * On `cardPlayed` and `cardBeingPlayed` only: "After you play [this card] **from your hand**" (Nova Prime 17002,
222
+ * Ironheart 13018, Squirrel Girl 61017; Star-Lord 17001a's "When you play a card from your hand"). The play must be
223
+ * from the hand, or counted as one ("as if it were in your hand": RRG 1.8 FAQ "Magik (#30A)", p. 64, "considered to
224
+ * have been played from her hand"; owner answer Q102 = A for Calling in Favors 61008). A card an effect plays from
225
+ * the deck without those words (Fetch Quest 39045, Shuri's Inventor) does not match, nor does any other event kind.
226
+ * An event that carries no origin is a play from the hand.
227
+ */
228
+ readonly playedFromHand?: true;
229
+ }
230
+ /**
231
+ * RRG "Labeled Ability": "(attack)" / "(thwart)" / "(defense)". The player's
232
+ * identity performs the labeled action once the ability begins resolving; a
233
+ * stunned (attack) or confused (thwart) identity cancels the whole ability
234
+ * except its costs. A defense label makes the identity the defender of the
235
+ * current enemy attack if it has none (no DEF reduction, no exhaust).
236
+ *
237
+ * An "(attack)" ability is one attack (RRG 1.8 "Attack (Player Ability Type)", p. 10; owner ruling, 2026-10-07,
238
+ * docs/phase7-wave8.md §4.1 Q47): once its `attack` effect, made by the controller's identity, has dealt its damage,
239
+ * damage the ability's `dealDamage` effects deal to enemies is that attack's (attack damage dealt by the identity, each
240
+ * enemy attacked once), and the attack finishes after the ability's last effect: retaliate from each attacked enemy
241
+ * still in play, "after … attacks", "at the end of this attack" (`resolve/attack-ability.ts`). Damage the ability
242
+ * deals to anything that is not an enemy stays plain damage.
243
+ *
244
+ * A "(thwart)" ability is a real thwart whether or not it uses the hero's THW (owner decision, 2026-10-03): threat it
245
+ * removes from a scheme, by `removeThreat`, `divide` or `modifyAttack.removesThreat` / `removesThreatFrom` as well as
246
+ * by `thwart`, is a `thwart` event by the controller's identity (`EffectContext.thwartLabeled`). So patrol and
247
+ * `cannotThwart` stop it on the main scheme (RRG 1.8 "Patrol", p. 32), a scheme that player cannot thwart is no target
248
+ * for it ("Target", p. 43), `modifyThwart` adds to each of its removals and "after you thwart" answers it. An
249
+ * unlabeled "remove N threat" stays a plain removal.
250
+ *
251
+ * A "(thwart)" ability whose threat removal names no scheme its player can thwart cannot be initiated, whatever else
252
+ * it does (owner decision, 2026-10-03; `thwartNamesNoValidScheme` in `resolve/target-validity.ts`): "remove 3 threat
253
+ * from the main scheme. If …, return this card to your hand" is not playable under an engaged patrol minion or a
254
+ * crisis icon. With a choice of schemes only the ones that player can thwart are offered. A scheme that becomes
255
+ * unthwartable as the ability resolves is not thwarted: no `thwart` event of amount 0 is raised for it
256
+ * (`thwartBlockedOn`).
257
+ *
258
+ * The ability is a single thwart however many instances of threat it removes (RRG 1.8 "Thwart", p. 44; owner
259
+ * decision, 2026-10-03): "when you thwart" is heard once, as its first instance initiates, and "after you thwart"
260
+ * once, after its last effect, on one resolved `thwart` event carrying every instance (`resolve/thwart-session.ts`).
261
+ */
262
+ export type AbilityLabel = "attack" | "thwart" | "defense";
263
+ /**
264
+ * An icon a card can gain or lose (`RuleSpec gainsIcon`): the scheme icons plus amplify, which the card data keeps in
265
+ * its own count (`amplifyIcons`, RRG 1.8 "Amplify Icon", p. 7) rather than in a scheme's icon list.
266
+ */
267
+ export type CardIcon = SchemeIcon | "amplify";
268
+ /**
269
+ * Multiplies resources generated toward a cost (RRG 1.8 "Resource", p. 37: resources are generated "by discarding cards
270
+ * from their hand … or by using card abilities that generate resources"; "Cost", p. 13). Two printed directions:
271
+ *
272
+ * - `whilePayingFor` (The Power of X: "Double the number of resources this card generates while paying for an
273
+ * [aspect] card"): read from the hand card being **spent**; multiplies what that card generates when the card paid
274
+ * for matches the query (the card whose cost is paid, per the RRG 1.8 FAQ entry for Make the Call).
275
+ * - `forThisCard` (Lightspeed Flight, `nova` 28004: "Double the number of [wild] resources generated while paying for
276
+ * this card"): read from the card being **paid for**; multiplies every resource generated toward its costs from any
277
+ * source, a hand card or a resource ability. Resources paid for an ability on a card are paid for that card (RRG
278
+ * 1.8 "Cost", p. 13), so it covers those too.
279
+ *
280
+ * `resource` narrows the multiplier to that one type ("[wild] resources"); without it every type is multiplied. A wild
281
+ * stays wild in the pool, so each doubled wild is declared separately at payment (RRG 1.8 "Wild Resource", p. 48:
282
+ * "When a card that generates a wild resource has its resources doubled, each of its wild resources can be declared a
283
+ * different type"). Both directions can apply to one resource; they multiply.
284
+ *
285
+ * - `thisCardGenerates` (docs/phase7-wave7.md §3.80): read from the hand card being **spent**, whatever it pays for.
286
+ * "Double the number of resources this card generates if your identity has sustained less than 5 damage (triple the
287
+ * resources instead if you have sustained no damage)" is a `factor` that is a value; "This card generates 1
288
+ * additional [wild] resource for each acceleration token on the main scheme (to a maximum of 3 additional
289
+ * resources)" is `additional`. Either or both; with neither it changes nothing.
290
+ *
291
+ * `factor` is a number or a value read at the moment the card is spent, with "this card" as the card carrying the text
292
+ * and "you" as the player spending it (for `forThisCard`, the player generating the resource). It is a whole number of at least 0: a
293
+ * factor of 1 changes nothing and 0 generates none. `additional` is added to what the card generates before any
294
+ * multiplier applies, this spec's own `factor` included (never below 0): the added resources are generated by this
295
+ * card, so "double the number of resources this card generates" and a `forThisCard` doubling on the card paid for
296
+ * count them. The printed resource is unchanged (ruling, January 11, 2026 - Ruling 3: a "printed resource" is the
297
+ * icon in the bottom left corner), so an effect counting printed resources still counts one.
298
+ */
299
+ export type ResourceMultiplierSpec = {
300
+ readonly factor: number | ValueSpec;
301
+ readonly whilePayingFor: TargetQuery;
302
+ readonly resource?: ResourceType;
303
+ } | {
304
+ readonly factor: number | ValueSpec;
305
+ readonly forThisCard: true;
306
+ readonly resource?: ResourceType;
307
+ } | {
308
+ readonly thisCardGenerates: true;
309
+ readonly factor?: number | ValueSpec;
310
+ readonly resource?: ResourceType;
311
+ readonly additional?: {
312
+ readonly resource: ResourceType;
313
+ readonly amount: ValueSpec;
314
+ };
315
+ };
316
+ /** `AbilityTriggerSpec playableAsIfInHand`: where a card may be played "as if it were in your hand" (wave 11 §3.8). */
317
+ export interface PlayableAsIfInHandSpec {
318
+ readonly player: PlayerRef;
319
+ readonly zone: "deckTop" | {
320
+ readonly tuckedUnder: TargetRef;
321
+ };
322
+ /**
323
+ * Only the covered cards that match ("the upgrade tucked here"); read with this ability's card as `self`. On a tuck
324
+ * this is the only filter: nothing checks who owns the tucked card, so a permission meant for its owner's cards
325
+ * only says so here (`owner: "you"`) or in `player`.
326
+ */
327
+ readonly cards?: TargetQuery;
328
+ readonly costReduction?: number;
329
+ /**
330
+ * "Reduce **the cost to play** that event by 2" (Photographic Reflexes) rather than "reducing its **resource cost**"
331
+ * (Magik): `costReduction` comes off the play's whole cost, the card's resource cost and then the generic resources
332
+ * of its ability cost, which are both costs of playing it (ruling August 26, 2026 - Ruling 1, on RRG 1.8 "Cost",
333
+ * p. 13-14: Reflexes reduces Make the Call's total, including the chosen ally's cost). Absent: the card's own
334
+ * resource cost only, floored at 0. `playRequirement` applies it.
335
+ */
336
+ readonly reducesAbilityCost?: true;
337
+ /**
338
+ * The permission is in force only while `player` is in this form: "If you are in hero form, you can discard …"
339
+ * (Photographic Reflexes, `fne` 60040a/b/c; docs/phase7-wave11.md §3.9). Read with the other conditions, so in the
340
+ * other form nothing is covered and nothing is offered.
341
+ */
342
+ readonly form?: Form;
343
+ /**
344
+ * "You can **discard [this card] from your hand** to play an event tucked under Echo as if it were in your hand"
345
+ * (Photographic Reflexes; docs/phase7-wave11.md §3.9): an additional cost of the play (RRG 1.8 "Cost", p. 13), paid
346
+ * with it. Only on a permission whose ability works from the hand (`AbilityDefinition.activeIn: "hand"`); the card
347
+ * carrying it is then not a resource toward that play's cost, and it is discarded as the play is paid for, right
348
+ * after the played card leaves the tuck. The log's `cardPlayed` names it as `via`.
349
+ */
350
+ readonly discardSelfFromHand?: true;
351
+ }
352
+ /**
353
+ * The "as if it were in your hand" permission a constant carries, or undefined: its `playableAsIfInHand`, or its
354
+ * `playableTopOfDeck` read as the `"deckTop"` case (docs/phase7-wave11.md §3.8).
355
+ */
356
+ export declare function playableAsIfInHandOf(trigger: AbilityTriggerSpec | undefined): PlayableAsIfInHandSpec | undefined;
357
+ export type AbilityTriggerSpec =
358
+ /**
359
+ * `while`: a condition printed before the cost ("Hero Action: If you are in Tiny hero form, exhaust Army of Ants →
360
+ * deal 1 damage to an enemy."). While it is false the action cannot be triggered, so no cost is paid for nothing.
361
+ */
362
+ /**
363
+ * `firstPlayerOnly`: "First Player Action" (The Galaxy's Most Wanted's side schemes and main schemes: "First Player
364
+ * Action: Exhaust the Milano → remove 3 threat from this scheme"). Only the first player may trigger it, on their turn
365
+ * like any action (RRG 1.8 "Action", p. 6). docs/phase7-wave3.md §3.13.
366
+ */
367
+ /**
368
+ * `triggerableBy`: who may trigger it, where the card names them (docs/phase7-wave6.md §3.11): "Any player whose
369
+ * alter-ego has the [MUTANT] trait may trigger this ability" (X-Mansion, `mut_gen` 32049), "Only the player who
370
+ * controls Robert Kelly can trigger this ability" (Protect the Senator, 32065b). Read with "this card" as the
371
+ * ability's card and "you" as its controller (nobody, on an encounter card). Absent, today's rule holds: an action on
372
+ * a card a player controls is theirs, one on an uncontrolled card is the active player's, and an optional
373
+ * interrupt/response goes to the controller, else to the player the event is about (RRG 1.8 "Ability", p. 4).
374
+ * Present, it replaces that rule: every player it names is offered the ability, and the one who triggers it is "you"
375
+ * for its cost, its form gate ("Alter-Ego Action", "Hero Response"), its event pattern ("After your hero defends")
376
+ * and its effects. Its limit stays per card unless the limit says per player. Optional interrupts and responses only:
377
+ * a forced ability is nobody's choice to trigger.
378
+ */
379
+ /**
380
+ * `forced`: "Forced Action" (docs/phase7-wave9.md §3.53; RRG 1.8 "Action", p. 6, and "Forced Action", p. 20): it
381
+ * "can be triggered at any time a non-forced action ability could be triggered", by the same player and at the same
382
+ * price, and "must be resolved before the player phase can end". While a player has one they could trigger now
383
+ * (`outstandingForcedActions`: in play, its cost payable, each target it requires there) their `endTurn` is refused,
384
+ * and one that became outstanding after its player's turn is put to that player before the phase ends. "If such an
385
+ * ability has a cost that cannot be paid or requires one or more valid targets and has none, the phase can end
386
+ * without that ability being resolved"; an effect that would change nothing is no such out.
387
+ */
388
+ {
389
+ readonly kind: "action";
390
+ readonly form?: Form;
391
+ readonly while?: Predicate;
392
+ readonly firstPlayerOnly?: boolean;
393
+ readonly triggerableBy?: PlayerRef;
394
+ readonly forced?: true;
395
+ }
396
+ /**
397
+ * "Resource:" / "Hero Resource:" — triggered while paying a cost. `forAnyPlayer`: "Piloting — Resource: Exhaust the
398
+ * Milano → generate a [wild] resource for any player." Any player paying a cost may use it, not only its controller
399
+ * (docs/phase7-wave3.md §3.13).
400
+ */
401
+ /**
402
+ * `repeatable`: "Each toon counter on Spider-Ham can be spent as if it were a [wild] resource" (`spiderham` 30001a;
403
+ * docs/phase7-wave5.md §3.25). An ability with no limit may be used more than once in a single payment, each use
404
+ * paying its own cost and generating its own resources. Only a fixed `spendCounters` cost can be paid repeatedly (a
405
+ * card exhausts once); the payment options offer one use per payable repeat (`ability:<id>:<abilityId>:<n>`).
406
+ *
407
+ * `spentAsIfResource`: the resources are spent, not generated (docs/phase7-wave5.md §4.1 Q5). RRG 1.8 "Cost" (p. 13)
408
+ * and "Resource" (p. 37) name the two ways a player generates resources: discarding cards from hand and using
409
+ * "Resource" abilities. A counter "spent as if it were a [wild] resource" is neither; the engine carries it as a
410
+ * resource ability only so it can join a payment. It still pays (and counts toward `paid.*`), but adds nothing to
411
+ * the payment's `resourcesGenerated` event, so "after … generates resources" (M.O.R.B.I.U.S.) does not see it.
412
+ *
413
+ * `while`: a resource ability that exists only under a condition — "While Brawn is exhausted, he gains: 'Resource:
414
+ * Generate a [mental] resource. (Limit once per phase.)'" (`ironheart` 29004). While it is false the ability cannot
415
+ * be triggered: it is not offered as a payment source and a payment naming it is refused (RRG 1.8 "Resource
416
+ * Ability", p. 37: triggered while generating resources to pay a cost; "Play Restrictions and Permissions", p. 33).
417
+ * Read with "this card" as the ability's card and "you" as the player spending it. Its limit (RRG 1.8 "Limit",
418
+ * pp. 26–27) counts uses as any resource ability's does, whether or not the condition was true in between.
419
+ *
420
+ * `whenSpent`: "**Interrupt**: When you spend this card, [cost] → generate …" on a card spent from hand (a resource
421
+ * card's own text, "active while using the card to generate resources": RRG 1.8 "Resource Card", p. 37). It is
422
+ * carried as a resource trigger because its effect is resources generated while a cost is being paid, which count
423
+ * toward that cost and may overpay it like any others (RRG 1.8 "Cost", p. 13), and because a payment's choices are
424
+ * all made up front (`Payment`). It differs from a "Resource" ability in three ways:
425
+ *
426
+ * - **Only with its own card's spending.** It is used by the payment entry that spends the card
427
+ * (`Payment.whenSpent`), never as an `ability` entry and never from a card in play: no spending, no interrupt.
428
+ * - **Once per spending**, by the player spending the card ("you"): their form, their cards pay its cost, and "your
429
+ * identity" is theirs.
430
+ * - **Its timing word is Interrupt** (`timingWordOf`), so a rule against resolving interrupt abilities stops it and
431
+ * one against "Resource" abilities does not.
432
+ *
433
+ * Its cost is paid before the card is discarded (an interrupt resolves before its triggering condition, RRG 1.8
434
+ * "Interrupt", p. 25), and the resources are part of the same payment, generated with the card's own
435
+ * (FAQ "Pepper Potts (#33)", p. 58: a payment's resources are generated simultaneously).
436
+ */
437
+ | {
438
+ readonly kind: "resource";
439
+ readonly form?: Form;
440
+ readonly while?: Predicate;
441
+ readonly forAnyPlayer?: boolean;
442
+ readonly repeatable?: boolean;
443
+ readonly spentAsIfResource?: boolean;
444
+ readonly whenSpent?: boolean;
445
+ }
446
+ /**
447
+ * `form` is the "Hero Interrupt" / "Alter-Ego Response" gate on the controller. `firstPlayerOnly`: "First Player
448
+ * Interrupt" (Kree Command Ship, `gmw` 16108) — only the first player is offered it, and they are the one who resolves
449
+ * it (docs/phase7-wave3.md §3.13).
450
+ *
451
+ * `while`: a condition on the ability itself, apart from its triggering condition: "(Limit 1 ally at a time.)" on
452
+ * "Response: After an ally is defeated by consequential damage, exhaust Med Lab → place it here" (Med Lab, `rogue`
453
+ * 38028; docs/phase7-wave6.md §3.57) is "while nothing is tucked here". While it is false the ability cannot be
454
+ * initiated (RRG 1.8 "Play Restrictions and Permissions", p. 33; "Initiating Abilities", p. 24, step 2, before any
455
+ * cost is paid at step 5): an optional one is not offered, a forced one does not resolve. Read with "this card" as
456
+ * the ability's card, "you" as the player who would resolve it and the triggering event in scope, where the trigger
457
+ * is gathered (`candidatesFor`) and again when an optional one is about to be offered (`stillOffered`). Where the
458
+ * action and resource triggers' `while` is read as their card is used, this one is read as the window opens.
459
+ */
460
+ | {
461
+ readonly kind: "interrupt";
462
+ readonly forced: boolean;
463
+ readonly on: EventPattern;
464
+ readonly form?: Form;
465
+ readonly while?: Predicate;
466
+ readonly firstPlayerOnly?: boolean;
467
+ /** Who may trigger it, when not forced: see the action trigger's `triggerableBy` (docs/phase7-wave6.md §3.11). */
468
+ readonly triggerableBy?: PlayerRef;
469
+ /**
470
+ * The printed triggering condition uses "would" ("When the villain would attack you, …") where other interrupts
471
+ * to the same event do not ("When [this enemy] attacks you, …"). RRG 1.8 "'Would'" (p. 48): it has "a higher
472
+ * timing priority … than interrupts to the same triggering condition without the word 'would'", so the event's
473
+ * interrupt window resolves every `would` interrupt, forced then optional and ordered among themselves as any
474
+ * tier is, before it gathers the others; if one replaces or cancels the event, the others are never gathered
475
+ * (docs/phase7-wave7.md §4.1, owner ruling 2026-10-06). Off by default, and set by the scripts whose text reads
476
+ * "would attack", "would scheme" or "would be defeated" (the entry's own example is a defeat; "is defeated"
477
+ * interrupts are the later tier). Damage and threat placement are left unmarked: every interrupt to them reads
478
+ * "would" (damage's own two stages are `wouldBeDealt`). "Would activate" is its own earlier event
479
+ * (`enemyActivating`) and needs no marker.
480
+ */
481
+ readonly would?: boolean;
482
+ /**
483
+ * A `dealDamage` interrupt whose printed condition is "when [character] would deal / be dealt any amount of
484
+ * damage" ("When any amount of damage would be dealt to Rhino, place it here instead", Armored Rhino Suit 01098),
485
+ * as against "would take". RRG 1.8 "Damage" (p. 14) orders them: (1) "would deal/be dealt" abilities, (2) tough
486
+ * status cards, (3) "would take" abilities, (4) "takes" abilities. So these resolve in the window's earlier tier
487
+ * (the one `would` uses, forced then optional), before a tough status card is checked; if one replaces or
488
+ * prevents the damage the tough card is kept, and if the tough card will still stop what is left, the window
489
+ * ends there and no "would take" interrupt is gathered (General FAQ, RRG 1.8 p. 58, which governs the "would be
490
+ * taken" stage only). RRG v1.8 p. 14; owner decision 2026-10-16 (audit finding 17), which supersedes the
491
+ * 2026-10-06 "status cards first" row of docs/phase7-wave7.md §4.1. Off by default: an unmarked damage
492
+ * interrupt is a "would take" one.
493
+ */
494
+ readonly wouldBeDealt?: boolean;
495
+ /**
496
+ * This ability does not trigger again while an earlier use of it by the same card is still resolving: while that
497
+ * use's effects are on the stack, the card is not gathered for it, forced or not. Off by default, because the
498
+ * RRG has no such general rule: an ability may trigger again from an event its own resolution causes, and cards
499
+ * rely on it. Set by a script whose ability starts something that would set the same ability off again before
500
+ * it has finished ("attached enemy attacks … Then, discard this card", Hidden in the Clutter, `next_evol` 40106:
501
+ * the defender's retaliate during that attack would otherwise be redirected onto the card and start a second
502
+ * attack before the first one's discard; owner ruling 2026-10-07, docs/phase7-wave7.md §4.1). The event that
503
+ * would have triggered it resolves as if the ability were not there.
504
+ */
505
+ readonly notWhileResolving?: boolean;
506
+ } | {
507
+ readonly kind: "response";
508
+ readonly forced: boolean;
509
+ readonly on: EventPattern;
510
+ readonly form?: Form;
511
+ /** A condition on the ability itself: see the interrupt trigger's `while`. */
512
+ readonly while?: Predicate;
513
+ readonly firstPlayerOnly?: boolean;
514
+ /** Who may trigger it, when not forced: see the action trigger's `triggerableBy` (docs/phase7-wave6.md §3.11). */
515
+ readonly triggerableBy?: PlayerRef;
516
+ /** Not while an earlier use of it by the same card is still resolving: see the interrupt trigger's own. */
517
+ readonly notWhileResolving?: boolean;
518
+ } | {
519
+ readonly kind: "whenRevealed";
520
+ } | {
521
+ readonly kind: "whenDefeated";
522
+ }
523
+ /**
524
+ * RRG 1.8 "When Completed Abilities" (p. 48): "equivalent to … 'Forced Interrupt: When this scheme is completed…'".
525
+ * Resolves on a main scheme stage reaching its target threat, before it advances; never on the final stage, whose
526
+ * completion loses the game.
527
+ */
528
+ | {
529
+ readonly kind: "whenCompleted";
530
+ } | {
531
+ readonly kind: "boost";
532
+ } | {
533
+ readonly kind: "setup";
534
+ }
535
+ /**
536
+ * "Attach to [host]. If you cannot, [effects], then attach this card to [other host]." (the Sinister Six's
537
+ * attachments, `sm` 27103-27106): resolves in place of RRG 1.8 "Attach To"'s (p. 8) discard when an encounter
538
+ * attachment being revealed has no legal `attachesTo` host. The card is not in play while it resolves; its own
539
+ * effects do the attaching (`attach` with `card: self`), after which the card enters play. If they leave it
540
+ * unattached, it is discarded as it would have been.
541
+ */
542
+ | {
543
+ readonly kind: "cannotAttach";
544
+ }
545
+ /**
546
+ * RRG "Special": resolves only when another ability instructs it (`resolveSpecials`; Wakanda Forever!).
547
+ *
548
+ * `tag`: a tagged ability with no trigger of its own, resolved only by an effect that names the tag (custom content:
549
+ * a pack's "speech bubbles", `tag: "pinkBubble"`; the tag is a free string the pack chooses). A tagged ability is not
550
+ * one of the card's Specials: `resolveSpecials` without that `tag` (Wakanda Forever!, a `resolveAbility` cost) never
551
+ * resolves it. It still counts as the card's (`ValueSpec taggedAbilities`, `TargetQuery hasTaggedAbility`) when its
552
+ * effects are empty (text with nothing to resolve). Read live like any ability: a blank text box, a facedown card or
553
+ * the other face hides it.
554
+ */
555
+ | {
556
+ readonly kind: "special";
557
+ readonly tag?: string;
558
+ }
559
+ /**
560
+ * "Preparation:" (MC50 rulebook p. 9, "Preparation Abilities"): printed "in place of 'Boost' abilities" on the
561
+ * encounter cards of one villain's set. "These abilities are **not** resolved when the cards are turned faceup as
562
+ * boost cards. Instead, these abilities are only resolved by the 'Forced Interrupt'" on that villain: like a Special,
563
+ * it resolves only when another ability instructs it (`EffectSpec resolveSpecials` with `trigger: "preparation"`),
564
+ * usually on a card in the encounter discard pile. It is not a boost ability, so the boost step never reads it and
565
+ * the card has no star icon for it. docs/phase7-wave9.md §3.2.
566
+ */
567
+ | {
568
+ readonly kind: "preparation";
569
+ }
570
+ /**
571
+ * A forced ability that resolves when a condition becomes true, with no triggering event: "If there are no madness
572
+ * counters here, flip Green Goblin and State of Madness." Checked between every two frames (as the RRG 1.8 "Uses"
573
+ * discard is, p. 46), so it happens immediately, mid-attack included (FAQ "Green Goblin (#1B)", p. 59).
574
+ *
575
+ * Edge-triggered: it fires when the condition changes from false to true, and not again until it has been false.
576
+ * A card's first observation only records the value. So a card that enters play, or flips to a face, with the
577
+ * condition already true does not fire until the condition has been false once. That keeps "enters play with N
578
+ * counters" scripted as a response from racing the check. It is the engine's reading, not a printed rule: see
579
+ * docs/phase7-wave1.md §4.1.
580
+ *
581
+ * `fromEntering`: the printed text is a standing condition, not a moment ("If Fantomex is not in play, discard
582
+ * E.V.A.", `next_evol` 40021), so it also resolves when the ability is first seen with its condition already true:
583
+ * the card entered play, flipped to this face, or got its text box back that way. RRG 1.8 "Ability" (p. 4): "A
584
+ * constant ability becomes active as soon as its card enters play", and one that seeks a condition ("if", "while")
585
+ * is "active anytime the specific condition is met". That first look is immediate (owner ruling 2026-10-05,
586
+ * docs/phase7-wave7.md §4.1: E.V.A. with no Fantomex "is discarded immediately"): for a card entering play it is
587
+ * the moment the card is in play, before any interrupt or response to its entering play is offered and before
588
+ * anything else resolves, and a card the ability takes out of play then gets none of those windows. The condition
589
+ * is read with the counters the card's uses keywords place as it enters (part of entering play, RRG 1.8 "Uses",
590
+ * p. 46) counted; counters scripted as a forced response to the card's own entering play are NOT there yet, so a
591
+ * card with such a response and a `fromEntering` condition that reads those counters needs the placement made
592
+ * known to the engine first (`resolve/state-checks.ts`, `withUsesCounters`). After the first look the check is
593
+ * edge-triggered like any other and never repeats while the condition stays true. Without the flag a card says
594
+ * "when" of a change ("When all the players have joined this game area, advance"), which a condition true from
595
+ * the start has not had.
596
+ */
597
+ | {
598
+ readonly kind: "stateCheck";
599
+ readonly when: Predicate;
600
+ readonly fromEntering?: true;
601
+ } | {
602
+ readonly kind: "constant";
603
+ readonly modifiers?: readonly StatModifierSpec[];
604
+ /** "X gains retaliate 1" — keywords the matching cards gain while this card is in play. */
605
+ readonly keywordGrants?: readonly KeywordGrantSpec[];
606
+ /** "Captain Marvel gains the Aerial trait". */
607
+ readonly traitGrants?: readonly TraitGrantSpec[];
608
+ /** Rule restrictions: "cannot take damage", "threat cannot be removed", ally limit, "must defend with an ally". */
609
+ readonly rules?: readonly RuleSpec[];
610
+ /** "Double the number of resources …" while paying a cost: see `ResourceMultiplierSpec`. */
611
+ readonly resourceMultiplier?: ResourceMultiplierSpec;
612
+ /**
613
+ * "This card generates [wild] for each ally you control (to a maximum of 3)" (Band Together, `mts` 21018): what
614
+ * this card generates when it is spent from hand, instead of its printed resources ("you" is the spender).
615
+ * docs/phase7-wave4.md §3.38.
616
+ */
617
+ readonly handGenerates?: ResourceGeneration;
618
+ /** Changes to the cost of playing cards (docs/phase7-wave1.md §3.10). */
619
+ readonly costModifiers?: readonly CostModifierSpec[];
620
+ /** "You can only spend [physical] resources to pay for this card." (Crushing Blow). Read from the card being paid for. */
621
+ readonly paymentOnly?: readonly TypedResource[];
622
+ /**
623
+ * Read from the card being paid for: a card whose text has you overpay for its cost when you play it ("for each
624
+ * resource you overpaid for Ant-Man's cost"). Nothing spent on it is "paying for" it, so a `whilePayingFor`
625
+ * multiplier does not apply to its payment (FFG ruling Sep 21, 2023, post-RRG 1.5 #87: "The Power Of cards will
626
+ * only generate one resource for these allies"; RRG 1.8 "Cost", p. 13: overpaid resources "were not paid for
627
+ * that cost").
628
+ */
629
+ readonly overpaidWhenPlayed?: true;
630
+ /** "Spend this card only in hero form." (Limitless Strength). Read from a hand card when it is spent. */
631
+ readonly spendableIn?: Form;
632
+ /**
633
+ * "While your identity has the [Civilian] trait, this card can be spent for any player" (Everyday Hero, `nova`
634
+ * 28019; docs/phase7-wave5.md §3.17): its owner may spend it from their hand toward another player's payment,
635
+ * as for an alliance card (RRG 1.8 "Alliance", p. 6). Read from the hand card, `while` with "you" its owner. The
636
+ * spend is announced as the owner's `resourcesSpent` with `forPlayerId` the paying player ("After you spend this
637
+ * card for a player").
638
+ *
639
+ * `forPlayer`: "can be spent for another player whose identity has the Defender trait" (The Defenders, `iron_fist`
640
+ * 64033): only toward the payment of a player it holds for, read with "you" that player (the one the card is spent
641
+ * for), not the owner. Both conditions must hold when both are given. Neither is read when the owner spends the
642
+ * card for themselves, which needs no permission.
643
+ */
644
+ readonly spendableForAnyPlayer?: {
645
+ readonly while?: Predicate;
646
+ readonly forPlayer?: Predicate;
647
+ };
648
+ /**
649
+ * "Connection to the Worldmind does not count toward your hand size." (`nova` 28007; docs/phase7-wave5.md §3.18):
650
+ * read from the card in hand by every "cards in hand against hand size" reader (`handCountTowardHandSize`). It is
651
+ * still a card in hand for everything else. The plan's `RuleSpec` would not be read from a hand.
652
+ */
653
+ readonly notCountedTowardHandSize?: true;
654
+ /**
655
+ * "[This card] cannot be attached to cards unless it is in play." (community pack `yondu-dh`, Yaka Arrow): read
656
+ * from the card wherever it is, like `notCountedTowardHandSize`. Out of play no effect may attach it (`attach`,
657
+ * a `findCard` that attaches, an attach cost: `canAttachTo`), and an upgrade with it that is played or put into
658
+ * play enters play unattached in its controller's play area instead of on a host (`resolve/play-card.ts`,
659
+ * `putIntoPlay`). Once in play, effects may attach it and move it between hosts as usual.
660
+ */
661
+ readonly attachedOnlyWhileInPlay?: true;
662
+ /**
663
+ * "You may play Lockjaw from your discard pile during your turn." A permission read from the card itself (RRG 1.8
664
+ * "Play Restrictions and Permissions", p. 33: "a permission might allow an ally card to be played from a player's
665
+ * discard pile").
666
+ */
667
+ readonly playableFrom?: readonly "discard"[];
668
+ /**
669
+ * "Play only if you control an Element Gun." (Sliding Shot, `stld` 17005): a play restriction whose condition is
670
+ * any `Predicate`, read from the card itself while it is being played (RRG 1.8 "Initiating Abilities", p. 24,
671
+ * step 2: "Check play restrictions"; "Play Restrictions and Permissions", p. 33: "all of its play restrictions
672
+ * must be observed"). The card is not in play when this is checked, which is why it cannot be a `cannotPlay` rule:
673
+ * those are read only from cards in play. `you` is the player playing the card and `self` the card. Enforced
674
+ * wherever `playRestrictionFault` is: a play command, `legalActions`, a play from an effect, and an event offered
675
+ * in a timing window. docs/phase7-wave3.md §3.42.
676
+ *
677
+ * The general form of the printed `PlayRestrictions` fields (`requiresIdentityTrait`,
678
+ * `requiresControlledCharacterTrait`), for the conditions card data cannot say: a named card, a trait on any card
679
+ * type, "any player controls", "at least 3 characters with the [Posse] trait".
680
+ */
681
+ readonly playOnlyIf?: Predicate;
682
+ /**
683
+ * "You may play [Arrow] events attached to this card as if they were in your hand" (Hawkeye's Quiver; docs/phase7-
684
+ * wave2.md §3.10): cards attached to this card that match may be played by its controller as if from hand. A
685
+ * permission on the host, where `playableFrom` is one on the card itself.
686
+ */
687
+ readonly playableAttachments?: TargetQuery;
688
+ /**
689
+ * "Once per phase, you may play the top card of your deck as if it was in your hand, reducing its resource cost
690
+ * by 1." (docs/phase7-wave8.md §3.49): a permission (RRG 1.8 "Play Restrictions and Permissions", p. 33) over the
691
+ * top card of each player deck `player` names, read from a card in play like `playableAttachments`, so it is off
692
+ * on the face that is not up and under a blank text box (RRG 1.8 "Text Box", p. 44). While it is in force and
693
+ * its limit is not used, that top card may be played wherever a card in that player's hand could be: the play
694
+ * command, an event in its timing window, an in-hand ability that plays its own card, and the card choice of
695
+ * `EffectSpec playFromHand` from the hand (RRG 1.8 FAQ "Magik (#30A)", p. 64: "Any time Magik has an opportunity
696
+ * to play a card from her hand, she may choose to play the top card of her deck instead (once per phase)").
697
+ *
698
+ * `costReduction` comes off that play's resource cost with every other modifier applied as usual, to a floor
699
+ * of 0, and adds to the reduction of an effect it is played through (owner decision §4.1 Q27 = A).
700
+ *
701
+ * **The limit is the ability's own `AbilityDefinition.limit`** (counted in `abilityUses` and cleared at the
702
+ * period's boundary like any other): one count per card carrying the permission, or per player it serves with
703
+ * `limit.per: "player"`. It is used when the card leaves the deck at step 1 of initiating (RRG 1.8 "Initiating
704
+ * Abilities", p. 24), so a play whose effects are then canceled still used it (RRG 1.8 "Limit", p. 27).
705
+ *
706
+ * Only playing: the card is in the deck for everything else. It is not in the hand for a count, a cost, a
707
+ * resource or "put into play from your hand" (the FAQ's fourth entry). The card was played from the hand for
708
+ * every reader (the FAQ's third entry); the log's `cardPlayed` carries `from: "deckTop", countsAsFrom: "hand"`.
709
+ *
710
+ * Independent of `RuleSpec topOfDeckFaceup`: the permission names the deck's first card whether or not a rule
711
+ * is showing it. On the one printed card the two lines are two constants of the same face and go off together.
712
+ */
713
+ readonly playableTopOfDeck?: {
714
+ readonly player: PlayerRef;
715
+ readonly costReduction?: number;
716
+ };
717
+ /**
718
+ * The general form of `playableTopOfDeck` (docs/phase7-wave11.md §3.8): a permission (RRG 1.8 "Play
719
+ * Restrictions and Permissions", p. 33) for each player `player` names to play a card from `zone` "as if it
720
+ * were in your hand", read the same way and on every route that plays a card from the hand.
721
+ *
722
+ * - `zone: "deckTop"`: exactly `playableTopOfDeck` (which stays, and is read as this case).
723
+ * - `zone: { tuckedUnder }`: "You may play the upgrade tucked here as if it were in your hand." (Contingency
724
+ * Planning, `fne` 60030). Each card tucked under the card(s) `tuckedUnder` names (this ability's card as
725
+ * `self`), faceup or facedown, that matches `cards` when given. A tucked card is out of play (RRG 1.8 "Tuck",
726
+ * p. 45), so it is played at its own timing as a hand card is (an upgrade in its player's turn, an event in its
727
+ * window) and leaves the tuck at step 1 of initiating (RRG 1.8 "Initiating Abilities", p. 24). The log's
728
+ * `cardPlayed` carries `from: "tucked", countsAsFrom: "hand"`. The tuck goes with its host (RRG 1.8 "Tuck",
729
+ * p. 45: discarded when the host leaves play), and with it the permission.
730
+ *
731
+ * - From the hand: on an ability with `activeIn: "hand"` (docs/phase7-wave11.md §3.9) the permission is read
732
+ * from each card in its player's hand, for that player ("you"), and never from a card in play. With
733
+ * `discardSelfFromHand` the card is discarded as an additional cost of each play it allows.
734
+ *
735
+ * `costReduction` and the ability's limit work as for `playableTopOfDeck`. At most one of the two is set.
736
+ * (The spec calls this `playableFrom`; that name is the card's own discard permission above, so it is
737
+ * `playableAsIfInHand` here.)
738
+ */
739
+ readonly playableAsIfInHand?: PlayableAsIfInHandSpec;
740
+ /** "As an additional cost for Wonder Man to attack, you must discard 1 card." Costs on this character's own basic powers. */
741
+ readonly basicPowerCosts?: readonly {
742
+ readonly power: "attack" | "thwart";
743
+ readonly cost: AbilityCost;
744
+ }[];
745
+ /**
746
+ * "As an additional cost to play this upgrade, search the encounter deck and discard pile for a minion and put it
747
+ * into play engaged with you. Attach Hunted to that minion and stun it." (Hunted, `cw` 56007;
748
+ * docs/phase7-wave10-box-heroes.md B3.1): this ability's `AbilityDefinition.cost` is added to the cost of playing
749
+ * its card, read from the card wherever it is played from (`additionalPlayCostOf`).
750
+ *
751
+ * - **Paid with the play or not at all.** RRG 1.8 "Cost" (p. 14): "A player must pay all additional costs
752
+ * simultaneously with the cost that is being added to … if they cannot pay for all of the costs at once, then
753
+ * they do not pay any of the costs". It is planned and paid with the card's resource cost and, for an event,
754
+ * its Action's own cost (a component both name is the Action's). A card whose additional cost cannot be paid
755
+ * cannot be played and `legalActions` lists it illegal with the cost's reason (owner decision 2026-10-11,
756
+ * box-heroes question 17 = A, provisional).
757
+ * - **Its picks** are the play command's `costChoices`, as an Action's cost picks are, and are bound on the play's
758
+ * frame.
759
+ * - **A `conditional` component** ("As an additional cost to play this card, if you do not have the Eternal
760
+ * trait, confuse your identity", Gilgamesh, `hercules` 59025) is decided for the player playing the card each
761
+ * time the play is priced, offered or paid (`playCostWith`): `you` is that player, `self` the card. As for any
762
+ * conditional cost only the picked branch is checked, so a branch that cannot be paid (an identity that cannot
763
+ * be given another confused status card, RRG 1.8 "Status Cards", p. 41) leaves the card unplayable. Its pick
764
+ * is not recorded as `cost.condition`. Resources and an either/or choice are not supported in this cost.
765
+ * - **What paying it triggers resolves before the card enters play** (RRG 1.8 "Cost Arrow Icon", p. 14; ruling
766
+ * February 28, 2026 - Ruling 1: "Any abilities triggered by paying a cost resolve immediately before the effect
767
+ * following the arrow resolves"): the cost's steps sit above the play's frame.
768
+ * - **`attachToSlot`**: the played upgrade enters play attached to the card the cost bound to this slot, not to a
769
+ * printed "attach to" host or its controller's identity; the play command names no host. If that card is not
770
+ * in play as the upgrade would enter, the upgrade has no host and is discarded (RRG 1.8 "Attach To", p. 8).
771
+ * - **The ability's `effects`** resolve as the card enters play, before its "enters play" windows, with the
772
+ * cost's bindings and its player as "you" ("… and stun it"). Not when the card had no host.
773
+ *
774
+ * Read for a play only: a card put into play is not played and pays no cost (RRG 1.8 "Play, Put into Play",
775
+ * p. 32). A play command and a play an effect makes (paying or ignoring the resource cost, with a pick only
776
+ * when it is forced) read it; an Interrupt or Response event played from its timing window does not (no card
777
+ * prints one).
778
+ */
779
+ readonly additionalCostToPlay?: {
780
+ readonly attachToSlot?: string;
781
+ };
782
+ };
783
+ /**
784
+ * A change to what a card costs to play. `delta` is signed: −1 "reduce the cost by 1", +3 "costs 3 additional
785
+ * resources" (Physical Toll). `appliesTo` is the card being played, `host` the card it will be attached to ("each upgrade
786
+ * on Iron Man"), `while` gates it ("the first ally played each round" with `playedThisRound`).
787
+ *
788
+ * In play by default. `activeIn: "hand"` is read from the card being played while it is in hand ("Reduce the cost to
789
+ * play Hercules by 1 for each minion engaged with you"); RRG 1.8 "In Play and Out of Play" (p. 23): out-of-play text
790
+ * works only when it "specifically refer[s] to being used from an out-of-play area".
791
+ */
792
+ export interface CostModifierSpec {
793
+ readonly delta: number | ValueSpec;
794
+ readonly appliesTo: TargetQuery;
795
+ readonly host?: TargetQuery;
796
+ readonly while?: Predicate;
797
+ readonly activeIn?: "hand";
798
+ }
799
+ /** A constant ability's stat change. `while` gates it (RRG "Constant Abilities"). */
800
+ export interface StatModifierSpec {
801
+ /**
802
+ * A character or hand-size stat, a scheme threat value (`SchemeValueName`), `boostIcons` ("This card gets +1 boost
803
+ * icon if …", read from the boost card itself while it resolves, `boostIconsFor`), or an ally's consequential
804
+ * damage ("takes +1 consequential damage after it attacks", Enraged).
805
+ */
806
+ readonly stat: StatName | "hp" | "handSize" | SchemeValueName | "boostIcons" | "consequentialAttack" | "consequentialThwart";
807
+ /**
808
+ * A number, or a value read from game state on every check: "+1 THW for each
809
+ * side scheme in play" (`count`), "X is equal to Titania's remaining hit
810
+ * points" (`remainingHp`), "+1 hand size per Tech upgrade (max 7)" (`scaled`),
811
+ * "+1 DEF (+2 instead if you have the Aerial trait)" (`conditional`).
812
+ */
813
+ readonly amount: number | ValueSpec;
814
+ readonly target: TargetQuery;
815
+ readonly while?: Predicate;
816
+ /**
817
+ * Replace the base value instead of adding: "Each facedown Drone minion has a
818
+ * base SCH of 1, a base ATK of 1, and a base hit points of 1" (Ultron Drones).
819
+ * Additive modifiers still apply on top.
820
+ */
821
+ readonly setBase?: boolean;
822
+ }
823
+ /**
824
+ * One or every stage of a main scheme card, for text that names a stage rather than a card in play: the stages of a card
825
+ * are one instance, so a `TargetQuery` cannot tell them apart. Without `stageNumber`, every stage of the card; `name`
826
+ * separates stages that share a number, as `EffectSpec advanceMainScheme.to` does.
827
+ */
828
+ export interface MainSchemeStageRef {
829
+ readonly cardId: CardId;
830
+ readonly stageNumber?: number;
831
+ readonly name?: string;
832
+ }
833
+ /** "X gains [keyword]" while the granting card is in play. */
834
+ export interface KeywordGrantSpec {
835
+ /** The keyword granted (or, with `loses`, lost). Absent when `keywordsOf` names where the keywords come from. */
836
+ readonly keyword?: KeywordInstance;
837
+ /**
838
+ * "Each Avenger minion gains the printed keywords of each other Avenger minion." (Earth's Mightiest Heroes, `cw`
839
+ * 56077; docs/phase7-wave10.md §3.12): each card `target` matches gains every keyword printed on each *other* card
840
+ * in play this query matches (from the granting card's point of view; the gaining card is never its own source).
841
+ * Printed keywords only (`printedKeywordsOf`: the showing face, none through a blank), so grants never feed each
842
+ * other. A keyword with a number or a parameter is gained as printed, and two sources of one numbered keyword are
843
+ * two instances, which add (RRG 1.8 "Keywords", p. 26). Not with `value` or `loses`.
844
+ */
845
+ readonly keywordsOf?: TargetQuery;
846
+ readonly target: TargetQuery;
847
+ readonly while?: Predicate;
848
+ /**
849
+ * "Mandrill gains retaliate X, where X is equal to the number of confused characters in play" (`hood` 24016), "Juggernaut
850
+ * gains retaliate X, where X is the number of momentum counters on Juggernaut" (Head of Steam, `next_evol` 40123): the
851
+ * granted keyword's number, read live from the granting card's point of view in place of `keyword.value`. A value of 0
852
+ * or less grants nothing (docs/phase7-wave4.md §3.53).
853
+ */
854
+ readonly value?: ValueSpec;
855
+ /**
856
+ * "Magneto loses steady." (Physical Strain, `mut_gen` 32145b; docs/phase7-wave6.md §3.13): the matching card loses
857
+ * every instance of `keyword.name`, printed or granted, while this applies; only the name is read. Losing beats
858
+ * gaining (RRG 1.8 "'Loses'", p. 27). `printedKeywordsOf` still shows it: "Lost characteristics are still considered
859
+ * to be printed on the card."
860
+ */
861
+ readonly loses?: true;
862
+ }
863
+ /** "X gains the [trait] trait" while the granting card is in play. */
864
+ export interface TraitGrantSpec {
865
+ /** The trait granted. Absent when `traitsOf` names where the traits come from instead. */
866
+ readonly trait?: Trait;
867
+ /**
868
+ * "Absorbing Man gains the trait of each environment in play" (docs/phase7-wave2.md §3.11): the printed traits of every
869
+ * card in play this query matches (from the granting card's point of view) are granted. Printed traits only, so grants
870
+ * can't feed each other.
871
+ */
872
+ readonly traitsOf?: TargetQuery;
873
+ readonly target: TargetQuery;
874
+ readonly while?: Predicate;
875
+ }
876
+ /**
877
+ * Narrows a damage-taken rule (`reduceDamageTaken`, `increaseDamageTaken`, `preventAllDamage`) to an ally's
878
+ * consequential damage (RRG 1.8 "Consequential Damage", p. 13; docs/phase7-wave6.md §3.31): the damage
879
+ * `pushConsequentialDamage` deals after the ally's attack or thwart, stamped `consequential` / `consequentialFrom` on its
880
+ * `dealDamage` event. Read where that damage is applied (`applyDamage`), so its amount is the printed icons plus any
881
+ * `consequentialAttack` / `consequentialThwart` modifier, and the rule changes what is *taken*. A rule with this scope
882
+ * never reaches any other damage.
883
+ *
884
+ * `from`: the basic power whose consequential damage it is ("from attacking", "from thwarting"), or `"any"`.
885
+ *
886
+ * `if`: read with the consequential damage event as the triggering event, its frame's vars as `vars` and its frame's
887
+ * slots as `bindings`. The ally's attack/thwart reports its results into that frame as `attack.*` / `thwart.*`
888
+ * (`made`, `damage`, `defeated`; slot `attack.damaged`, the characters it damaged; slot `attack.target`, the character
889
+ * it attacked, damaged or not), so "after he attacks and defeats a minion" (Cannonball, `mut_gen` 32091) is
890
+ * `varAtLeast attack.defeated` with `refMatches` on `attack.damaged`, `anywhere` since a defeated minion has left play,
891
+ * and "when attacking attached minion" (Coordinated Attack, `cyclops` 33016) is `refMatches` on `attack.target`.
892
+ * A thwart reports slot `thwart.target`, each scheme it thwarted (every scheme of a thwart divided across several), so
893
+ * "after thwarting a side scheme" is `refMatches` on `thwart.target`, `anywhere` since a defeated side scheme has left
894
+ * play by then.
895
+ */
896
+ export interface ConsequentialDamageScope {
897
+ readonly from: "attack" | "thwart" | "any";
898
+ readonly if?: Predicate;
899
+ }
900
+ /** Rule restrictions a constant ability imposes (RRG "Cannot" wins over "can"). */
901
+ export type RuleSpec =
902
+ /**
903
+ * "X cannot take damage [while …]" (Ultron III, Madame Hydra); `fromSource`: "…from Black Panther upgrades" (Killmonger).
904
+ *
905
+ * `exceptFromSource`: "Goblin can only take damage from cards with a printed [physical] resource" (39043;
906
+ * docs/phase7-wave6.md §3.68): it cannot take damage unless the damage's source card matches. That card is the one
907
+ * the damage came through, else its source (§4 Q39, `damageSourceCard`): the event, support or upgrade whose ability
908
+ * dealt it, an ally for its attack, the identity for a hero's basic attack; resources spent to pay never count. With
909
+ * both fields, damage is blocked when it matches `fromSource` and not `exceptFromSource`.
910
+ *
911
+ * "The villain cannot take damage unless the attacker or attack has the [AERIAL] trait, or the attack has ranged."
912
+ * (docs/phase7-wave7.md §3.30). Three exceptions that only an attack's damage can meet, each read from the attack
913
+ * the damage belongs to (`DamageAttackInfo`); the damage gets through when any exception given holds:
914
+ *
915
+ * - `exceptAttacker`: the attacking character matches (the hero or ally whose attack it is, whatever card made the
916
+ * attack; an enemy for an enemy's attack).
917
+ * - `exceptAttackCard`: "the attack has the trait" — the card whose ability makes the attack matches (an attack
918
+ * event, an upgrade's or support's attack ability). A basic attack has no such card: it is the character's own,
919
+ * which `exceptAttacker` reads. The RRG defines no traits for an attack itself; a trait is a card's (RRG 1.8
920
+ * "Traits", p. 45), so the attack's are those of the card that creates it.
921
+ * - `exceptAttackKeyword`: the attack has the keyword, its attacker's own or granted to this attack
922
+ * (`attackKeywordsOf`).
923
+ *
924
+ * Damage that is not from an attack (an ability's or non-attack event's, retaliate, indirect damage) has neither
925
+ * an attacker nor an attack, meets none of them and is blocked (§4.1 Q17). Overkill's spill is "damage from an
926
+ * attack" (RRG 1.8 "Overkill", p. 31) and carries its attack's attacker, card and keywords.
927
+ *
928
+ * `stage: "dealt"`: "X cannot be dealt damage" (Kingpin `fne` 60159a, Jackknifed Tanker Truck 60131;
929
+ * docs/phase7-wave11-scenarios.md §S3.5). RRG 1.8 "Damage" (p. 14) separates the damage dealt from the damage taken,
930
+ * and "Cannot" (p. 11) is absolute, so damage that cannot be dealt is never dealt: it is dropped before its
931
+ * interrupt window, with no "would deal / be dealt" or "would take" interrupt, no tough card used or pierced, no
932
+ * excess damage and no "after … deals / is dealt damage" response (logged `damageNotDealt`). The attack it belongs
933
+ * to was still made, so "after … attacks" and retaliate still resolve. Everywhere else (target validity, damage
934
+ * costs, sequential damage) it reads as "cannot take damage": what cannot be dealt cannot be taken either. Absent,
935
+ * the rule is the "cannot take damage" above (dealt, then not taken; ruling March 6, 2026 R1).
936
+ */
937
+ {
938
+ readonly kind: "cannotTakeDamage";
939
+ readonly target: TargetQuery;
940
+ readonly stage?: "dealt";
941
+ readonly while?: Predicate;
942
+ readonly fromSource?: TargetQuery;
943
+ readonly exceptFromSource?: TargetQuery;
944
+ readonly exceptAttacker?: TargetQuery;
945
+ readonly exceptAttackCard?: TargetQuery;
946
+ readonly exceptAttackKeyword?: AttackKeyword;
947
+ }
948
+ /**
949
+ * "Threat cannot be removed from this scheme" (Countdown to Oblivion); `by: "thwart"`: "… from attached scheme by
950
+ * thwarting" (Held Hostage). `player`, resolved with "you" as the rule card's speaker exactly as `cannotAttack`'s own
951
+ * field docs (docs/phase7-wave2.md §25), scopes *who* is blocked rather than restricting every player: absent, it
952
+ * blocks any removal, as every rule before this field existed did; given, only a removal whose player (the thwart's
953
+ * player, else the removing card's controller; a removal with neither is never scoped out) is one of `player`'s
954
+ * players is blocked. "Players other than Gamora cannot remove threat from Sibling Rivalry" (`gam` 18025,
955
+ * docs/phase7-wave3.md §3.26) is `{ player: others(ownerOf(gamorasIdentity)) }`.
956
+ *
957
+ * `exceptBy` scopes it by the removing **character** instead: "Characters other than [X] cannot remove threat from
958
+ * [this scheme]" (docs/phase7-wave7.md §3.51) is `{ target: { self: true }, exceptBy: <X> }`. It binds only a removal
959
+ * a character performs, and lets through the one whose character matches `exceptBy` (matched with "you" as the rule
960
+ * card's speaker). The character is the thwarting character for a thwart, basic or "(thwart)"-labeled (RRG 1.8
961
+ * "Labeled Ability", p. 26: a thwart "made by that player's identity", whichever card the label is on), else the
962
+ * character the removing card acts for (`actingCharacterOf`, `select.ts`; RRG 1.8 "You, Your", p. 49). A removal no
963
+ * character performs (a support's or a player side scheme's unlabeled ability, an encounter card that is not a
964
+ * villain or minion, a `removeThreat.noPlayer` removal) is not bound by it (owner decision, §4.1 Q29 = A: only
965
+ * characters are barred). Threat moved off the scheme is removed from it (RRG 1.8 "Move", p. 30) and is bound the
966
+ * same way; threat moved onto it, threat prevented, and an effect that defeats or discards the scheme without
967
+ * removing threat are not removals and are untouched.
968
+ *
969
+ * `exceptThwartBy` is the narrower exception (docs/phase7-wave10-hero-packs.md H3.6): "Threat cannot be removed from
970
+ * attached scheme **except by Hercules's thwarts**" (Embody Pathos, `hercules` 59003) is `{ target: <the attached
971
+ * scheme>, exceptThwartBy: <Hercules> }`. Unlike `exceptBy` it binds every removal, a character's or not (RRG 1.8
972
+ * "'Cannot'", p. 11), and lets through only a thwart whose thwarting character matches (with "you" as the rule
973
+ * card's speaker): that character's basic thwart, and a "(thwart)"-labeled ability or event, which is a thwart made
974
+ * by its player's identity whichever card the label is on (RRG 1.8 "Labeled Ability", p. 26). Not let through: an
975
+ * unlabeled removal, on that character's own card or event included; another character's thwart (an ally's, another
976
+ * player's identity's); an encounter card's removal; threat moved off the scheme. The scheme is not a legal target
977
+ * of a basic thwart or thwart ability the rule stops. It may be combined with `player`, which then scopes whose
978
+ * removals are bound, as above.
979
+ *
980
+ * `exceptFromSource` scopes it by the removing **card** (docs/phase7-wave11.md §3.5): "Threat cannot be removed from
981
+ * this scheme except by Daredevil or Matt Murdock" (Focus the Senses, `fne` 60012) is `{ target: { self: true },
982
+ * exceptFromSource: { extensionOf: <that player> } }`. It binds every removal (RRG 1.8 "'Cannot'", p. 11: an
983
+ * encounter card's, a support's and an ally's included) and lets through one whose removing card matches; for a
984
+ * removal a thwart makes, the removing card is the thwarting character alone. With `extensionOf` that is the
985
+ * identity's basic thwart in either form (RRG 1.8 "Identity", p. 23: both titles name the identity), an event its
986
+ * player plays (a borrowed one included; one they own that another player plays is not), its upgrades unless on
987
+ * another friendly character (RRG 1.8 "You, Your", p. 49), and any "(thwart)"-labeled ability its player uses, on a
988
+ * support or ally included: RRG 1.8 "Labeled Ability" (p. 26) makes it "a thwart made by that player's identity",
989
+ * which the engine follows over p. 49's line that supports and allies are not extensions (engine interpretation).
990
+ * An ally's basic thwart is the ally's. A `removeThreat.noPlayer` removal has no removing card and is bound. The
991
+ * scheme is not a legal target of a basic thwart or thwart ability the rule stops.
992
+ */
993
+ | {
994
+ readonly kind: "threatCannotBeRemoved";
995
+ readonly target: TargetQuery;
996
+ readonly while?: Predicate;
997
+ readonly by?: "thwart";
998
+ readonly player?: PlayerRef;
999
+ readonly exceptBy?: TargetQuery;
1000
+ readonly exceptThwartBy?: TargetQuery;
1001
+ readonly exceptFromSource?: TargetQuery;
1002
+ }
1003
+ /**
1004
+ * "While Baron Zemo is engaged with you, you cannot thwart." `player` is resolved with "you" as the rule card's
1005
+ * speaker (`speakerOf`). `schemes` scopes which schemes the player cannot thwart: "The engaged player cannot thwart
1006
+ * side schemes" (Life-Size Decoy, `sm` 27142) is `{ schemes: query("sideScheme") }`. Absent, every scheme, as every
1007
+ * rule before this field meant. A scoped-out scheme is not a legal target of the player's basic thwart (refused
1008
+ * before any cost, as patrol is) nor of a "(thwart)" ability (RRG 1.8 "Target", pp. 42–43: "A target that cannot be
1009
+ * thwarted is not a valid target for a thwart-labeled ability"); the player may still thwart every other scheme.
1010
+ *
1011
+ * `thwarter` scopes it to *a character* instead of (or as well as) a player (docs/phase7-wave6.md §3.77): "Attached
1012
+ * identity cannot thwart" (Wrapped in Metal, `mut_gen` 32150) restricts that identity's every thwart (basic, a thwart
1013
+ * event, a thwart ability: RRG 1.8 "You, Your", p. 49, an event's thwart is its player's identity's), while an ally the
1014
+ * same player controls still thwarts. Matched against the thwarting character with "you" as the rule card's speaker
1015
+ * (`ActiveRule.context`), so an obligation's or attachment's "your identity" is its holder's. A rule with neither
1016
+ * `player` nor `thwarter` binds every player.
1017
+ */
1018
+ | {
1019
+ readonly kind: "cannotThwart";
1020
+ readonly player?: PlayerRef;
1021
+ readonly thwarter?: TargetQuery;
1022
+ readonly schemes?: TargetQuery;
1023
+ readonly while?: Predicate;
1024
+ }
1025
+ /**
1026
+ * "Attached identity cannot thwart, attack, defend, or recover" (Wrapped in Metal, `mut_gen` 32150;
1027
+ * docs/phase7-wave6.md §3.14). `player` (resolved like `cannotThwart`'s) cannot make a basic recovery: the command is
1028
+ * refused and not offered as legal. Every "recover" in card text means the basic recovery (RRG 1.8 "Recover,
1029
+ * Recovery", p. 36; "Basic Power", pp. 10–11), so nothing else is stopped: a heal, even one equal to REC, is not a
1030
+ * recovery and only `cannotBeHealed` (§3.12) stops it.
1031
+ */
1032
+ | {
1033
+ readonly kind: "cannotRecover";
1034
+ readonly player: PlayerRef;
1035
+ readonly while?: Predicate;
1036
+ }
1037
+ /**
1038
+ * "While Iron Monk is engaged with you, you cannot choose the 'Avoid' effect on Trap! cards" (`shadowland` 65047):
1039
+ * `player` cannot choose an option of a "choose one" (`EffectSpec chooseOne`) whose `tag` is one of `tags`, on an
1040
+ * ability of a card `sources` matches (any card when absent; read with this rule's card as "self"). The option is
1041
+ * not offered (RRG 1.8 "'Cannot'", p. 11), so the remaining ones are chosen among as RRG 1.8 "Choose (Option)" (p.
1042
+ * 12) has it: one left resolves without asking, none left resolves to nothing. `player` resolves like
1043
+ * `cannotRecover`'s; a ref naming nobody (the minion engaged with no one) bars nobody. An option without a tag is
1044
+ * never barred.
1045
+ */
1046
+ | {
1047
+ readonly kind: "cannotChooseOption";
1048
+ readonly player: PlayerRef;
1049
+ readonly tags: readonly string[];
1050
+ readonly sources?: TargetQuery;
1051
+ readonly while?: Predicate;
1052
+ }
1053
+ /**
1054
+ * "Attached minion cannot activate" (Mental Paralysis, `phoenix` 34008; docs/phase7-wave6.md §3.34, §4.1 Q19). A
1055
+ * matching enemy's attack or scheme activation does not begin, wherever it would (RRG 1.8 "Activation", p. 6:
1056
+ * "Whenever an enemy attacks or schemes, it is considered to have activated"): the villain phase's, an effect's "X
1057
+ * attacks/schemes", quickstrike and teamwork. No boost card is dealt, no status card is spent, no interrupt to it
1058
+ * opens; logged `activationBlocked`. Its other abilities still resolve and it stays engaged. An enemy attacking
1059
+ * another enemy (`enemyAttacksEnemy`) is not an activation (wave 3 §4 Q12), so it is not stopped.
1060
+ */
1061
+ | {
1062
+ readonly kind: "cannotActivate";
1063
+ readonly target: TargetQuery;
1064
+ readonly while?: Predicate;
1065
+ }
1066
+ /**
1067
+ * "During step 2 of the villain phase, Barracuda activates against you before The Punisher does." (The Punisher
1068
+ * community scenario): in the villain phase's step 2 (RRG 1.8 "Villain Phase", p. 47: "2a. The villain activates
1069
+ * against [the player] ... 2b. Each minion engaged with the player activates against them, in the order of that
1070
+ * player's choice"), a matching minion engaged with the player activates against them before the villain's
1071
+ * activation against that player, instead of after it. With several, the engaged player picks their order, as for
1072
+ * the minions after the villain (step 2b). The other minions keep their place after the villain; each minion still
1073
+ * activates once in the step. Read as the player's activations begin (and again after each early minion), so a
1074
+ * minion that comes into play or gains the rule after the villain activated waits for step 2b. Only the villain
1075
+ * phase's step 2: an effect's "the villain activates" is not reordered.
1076
+ */
1077
+ | {
1078
+ readonly kind: "activatesBeforeVillain";
1079
+ readonly target: TargetQuery;
1080
+ readonly while?: Predicate;
1081
+ }
1082
+ /**
1083
+ * "Ignore each boost icon and each 'Boost' ability for this attack" (Aerial Agility, `angel` 42004;
1084
+ * docs/phase7-wave7.md §3.67). RRG 1.8 "Ignore" (p. 23): the ignored icon or ability is treated "as not being in
1085
+ * effect or present". Each boost card of a covered activation is still turned faceup and discarded ("Attack (Enemy
1086
+ * Activation)" step 3, p. 8; "After applying a boost card to an activation, discard it", p. 11), but it adds 0 and
1087
+ * its "Boost" ability does not resolve; logged `boostIgnored`. Every boost card is covered, however it got there:
1088
+ * the automatic one, additional ones, one dealt earlier and waiting facedown.
1089
+ *
1090
+ * No icon counts: not the printed ones, not one an amplify icon adds ("Each boost card gains [boost]", "Amplify
1091
+ * Icon", p. 7: a gained boost icon is a boost icon) and not one another effect adds for the count. Nothing is
1092
+ * canceled ("Cancel", p. 11): no `boostCancelled` entry, and a "cancel the boost icons / Boost ability" effect finds
1093
+ * nothing to cancel, so what depends on its cancel does not happen. A Boost ability that cannot be canceled is
1094
+ * ignored all the same: "'Cannot'" (p. 11) forbids the cancel and no rule forbids ignoring.
1095
+ *
1096
+ * As a lasting rule until the end of an attack (`applyRuleUntil` `"endOfAttack"`) it covers that activation alone,
1097
+ * not another that begins while it resolves (`boostIgnored`, rules.ts). On a constant ability, or with any other
1098
+ * duration, it covers every attack and scheme activation by an enemy matching `enemy` (absent = any enemy), and an
1099
+ * enemy's boosted attack on another enemy (`enemyAttacksEnemy.boost`, which deals its boost cards the same way).
1100
+ *
1101
+ * `only: "abilities"`: "ignore each 'Boost' ability" alone (The Punisher community scenario, "when he attacks a
1102
+ * minion ... ignore each 'Boost' ability"): the card's boost icons count as usual (printed, amplify, added), and only
1103
+ * its "Boost" ability is not resolved; logged `boostIgnored` with `abilityOnly`. A rule ignoring both wins over it.
1104
+ * Scope it to one kind of attack with a `while` (`attackInProgress`), read at the flip and again before the ability.
1105
+ */
1106
+ | {
1107
+ readonly kind: "ignoreBoost";
1108
+ readonly enemy?: TargetQuery;
1109
+ readonly only?: "abilities";
1110
+ readonly while?: Predicate;
1111
+ }
1112
+ /**
1113
+ * "Each boost icon counts twice during The Punisher's attacks against minions." (Extreme Prejudice, The Punisher
1114
+ * community scenario): each boost card of an activation by a matching enemy (absent = any enemy) adds `factor` times
1115
+ * its counted icons, including an enemy's boosted attack on another enemy (`enemyAttacksEnemy.boost`). Read at each
1116
+ * card's count (RRG 1.8 "Boost, Boost Icon", p. 11: the icons are added after the card's Boost ability), after
1117
+ * everything else that sets that count: printed icons, amplify icons, "+N boost icons each", a "for this count"
1118
+ * adjustment, icons a Boost ability gave the card and cards applied "as if it were a boost card", so each of those
1119
+ * icons counts `factor` times too. A cancelled count stays 0 and an ignored card adds 0. Several matching rules
1120
+ * multiply (two "counts twice" make four): engine reading (authority step 5), no official card does this. Scope it to
1121
+ * one kind of attack with a `while` (`attackInProgress`). Logged `boostIconsMultiplied` when it changes a count.
1122
+ */
1123
+ | {
1124
+ readonly kind: "boostIconsMultiplied";
1125
+ readonly factor: number;
1126
+ readonly enemy?: TargetQuery;
1127
+ readonly while?: Predicate;
1128
+ }
1129
+ /**
1130
+ * "Ignore the Forced Interrupt on the main scheme." (No Longer Worthy, `aoa` 45105b; docs/phase7-wave8.md §3.21.)
1131
+ * While the rule is in effect, the abilities named in `abilities` on each card in play matching `on` are not there:
1132
+ * they do not trigger, an instance of one that had already triggered does not resolve (logged `abilityIgnored`), and
1133
+ * a constant one applies nothing. RRG 1.8 "Ignore" (p. 23): "An ability that ignores some ability, icon, or cost
1134
+ * treats that ability, icon, or cost as not being in effect or present while that ability is resolving"; a constant
1135
+ * ability applies for as long as its card is in play, so the named ability is absent for that long. Every other
1136
+ * ability, keyword and value of the card stays. Nothing is canceled or blanked (RRG 1.8 "Cancel", p. 11; "Blank",
1137
+ * p. 10), so an ability that cannot be canceled is ignored all the same, and text that counts blank cards does not
1138
+ * count this one.
1139
+ *
1140
+ * The rule's `while` and `on` are read from printed characteristics, and from the cards' abilities before any ignore
1141
+ * is applied: the answer does not depend on the order cards are visited, and an ignore rule is never itself ignored
1142
+ * by another.
1143
+ */
1144
+ | {
1145
+ readonly kind: "ignoreAbilities";
1146
+ readonly on: TargetQuery;
1147
+ readonly abilities: readonly AbilityId[];
1148
+ readonly while?: Predicate;
1149
+ }
1150
+ /**
1151
+ * "Each encounter card without a printed 'Preparation' ability gains 'Preparation: Prevent all damage from this
1152
+ * attack. Then, discard Night Vision Goggles.'" (`aos` 50070); "… gains 'Preparation: Deal 1 damage to the attacking
1153
+ * character.'" (Automated Defenses, 50074). docs/phase7-wave9.md §3.3. A constant on the granting card that names a
1154
+ * second registry entry, `abilityId`: an ordinary `AbilityDefinition` whose trigger is the `label`'s kind
1155
+ * (`AbilityTriggerSpec preparation`), listed on no card's own abilities.
1156
+ *
1157
+ * - **Who gains it** (`to: "encounterCardsWithoutPrinted"`): a card of an encounter card type (RRG 1.8 "Encounter
1158
+ * Card", p. 17; never a player card type, whatever deck it is discarded from) that prints no ability of that label
1159
+ * anywhere on it. "Printed" is the physical card (RRG 1.8 "Printed", p. 35), so a blank text box does not make a
1160
+ * card that prints one gain another, and a gained ability "is not considered to be printed" (RRG 1.8 "'Gains'",
1161
+ * p. 21): a card gains from every such rule in effect, two granting cards give two abilities. The granting card
1162
+ * and the other cards of its set that print none gain it like any other (a second copy that is the discarded card).
1163
+ * - **Where it is read** (`grantedLabeledAbilities`, rules.ts): by `EffectSpec resolveSpecials` with that `trigger`,
1164
+ * for each card it names, wherever that card is (the encounter discard pile). The granted abilities join the
1165
+ * card's printed ones: same resolving player, same triggering event, ordered together by that player, counted in
1166
+ * `<bind>.count` and in the attack's `labeledResolvedVar(label)`. Nothing else reads it: like a printed
1167
+ * Preparation it is never a boost ability.
1168
+ * - **Inside the granted ability** "this card" (`self`) is the card that gained it, the discarded one, and the card
1169
+ * the text names ("discard Night Vision Goggles") is the granting card, bound to the slot `GRANTED_BY_SLOT`. The
1170
+ * two differ: discarding the named card discards the granting card in play, not the card in the discard pile.
1171
+ * - A constant like any other: off while its `while` is false, on a face that is not up, under a blank text box, and
1172
+ * once its card has left play (an ability already on the stack still resolves).
1173
+ */
1174
+ | {
1175
+ readonly kind: "grantsLabeledAbility";
1176
+ readonly label: GrantableAbilityLabel;
1177
+ readonly to: "encounterCardsWithoutPrinted";
1178
+ readonly abilityId: AbilityId;
1179
+ readonly while?: Predicate;
1180
+ }
1181
+ /**
1182
+ * "If each of your allies has the Aerial trait, … this card gains: 'Response: After you play an Aerial card, exhaust
1183
+ * this card → ready an ally you control.'" (Flight Squadron, `falcon` 53020); "each ally you control gains:
1184
+ * 'Response: …'". A constant's rule that names a second registry entry, `abilityId`: an ordinary triggered or
1185
+ * action `AbilityDefinition`, listed on no card's own abilities, which a card in play has in addition to its
1186
+ * printed ones while the rule is in effect.
1187
+ *
1188
+ * RRG 1.8 "'Gains'" (p. 21): "If a card gains a characteristic (such as a trait, keyword, or ability text), the
1189
+ * card functions as if it possesses the gained characteristic. Gained characteristics are not considered to be
1190
+ * printed on the card."
1191
+ *
1192
+ * - **Who gains it.** `to` omitted: the rule's own card ("this card gains"). `to`: every card in play the query
1193
+ * matches, read as the rule's card reads it (`you` is its speaker): "each ally you control gains". A facedown
1194
+ * card gains nothing.
1195
+ * - **Where it is read** (`gainedAbilities`, select.ts): `activeAbilityRefs` joins the gained abilities to the
1196
+ * card's live printed ones, so every reader of a card's abilities has them: timing windows, the triggers of an
1197
+ * event, legal actions and `useAbility`, resource abilities, the limit and the uses counted under
1198
+ * `<instance>:<abilityId>`, costs, labels, and the game-triggered abilities (`gameAbilityFrames`: a gained When
1199
+ * Defeated or When Revealed resolves after the card's printed ones, "Each minion gains: 'When Defeated: …'", The
1200
+ * Raft Breakout 60142b; an effect that ignores When Defeated abilities ignores it too). Inside the gained ability
1201
+ * `self` is the card that gained it and `you` its controller, as for a printed ability. Its form, `while`, cost and
1202
+ * limit are its own.
1203
+ * - **Not printed.** A blank on the gaining card's text box does not take a gained ability away (only the granting
1204
+ * card's own blank does, by turning its constant off: one and the same for "this card gains"); "printed" readers
1205
+ * (`printedAbilityRefs`) never see it. `RuleSpec ignoreAbilities` naming its id does remove it.
1206
+ * - **One of each.** A card that gains an ability it already has (two granting cards, or one it prints) has it
1207
+ * once: abilities are counted by id on a card, as their limits are.
1208
+ * - **Never a constant.** A rule naming a constant ability, or an id the registry lacks, gives nothing: the rules a
1209
+ * card gives are read before the abilities it gains (`gainedAbilities` reads printed constants only, which is
1210
+ * also what lets its `while` and `to` be read with every granted trait and keyword in effect).
1211
+ * - A constant like any other: off while its `while` is false, on a face that is not up, under a blank text box,
1212
+ * and once its card has left play (an ability already on the stack still resolves). Also given by a lasting
1213
+ * `applyRuleUntil` and by a scenario rule.
1214
+ * - **To boost cards.** A `to` with `boostCard: true` reaches a card in an enemy's boost area, which is not in play:
1215
+ * "Each boost card from the Purple Man encounter set gains: '[star] Boost: …'" (60097–60099;
1216
+ * docs/phase7-wave11-scenarios.md §S3.6). Read as the boost card is turned faceup (`gainedBoostAbilities`); only a
1217
+ * `boost` ability is gained that way, and it resolves after the card's printed ones, as one of them would.
1218
+ *
1219
+ * How it relates to `grantsLabeledAbility` above: both name a registry-only ability from a constant. That one is
1220
+ * for a labeled ability (a Preparation) of a card that is resolved on demand wherever the card is (an encounter
1221
+ * card in the discard pile, `grantedLabeledAbilities`), with the granting card bound as `GRANTED_BY_SLOT`; this one
1222
+ * is for the live abilities of a card in play. The card "this card gains: 'Interrupt: …'" as its only text needs
1223
+ * neither: its one ref is the interrupt with the condition as its `while` (Agents of S.H.I.E.L.D., `aos` 50015).
1224
+ */
1225
+ | {
1226
+ readonly kind: "gainsAbility";
1227
+ readonly abilityId: AbilityId;
1228
+ readonly to?: TargetQuery;
1229
+ readonly while?: Predicate;
1230
+ }
1231
+ /**
1232
+ * "Any player may spend the resource card tucked here as if it were in their hand." (Resource Reserve, `falcon`
1233
+ * 53021; docs/phase7-wave9.md §3.46 (c)). Each faceup card tucked under the rule's card that matches `cards`
1234
+ * (absent: every one) is a payment source for each player `by` names, read as the rule's card reads them: it is
1235
+ * named in a payment as a hand card is (`Payment.fromHand`) and the engine treats it as one for that spending.
1236
+ *
1237
+ * - **As if in hand** (RRG 1.8 "Cost", p. 13: resources come "by discarding cards from their hand"). It generates
1238
+ * what it would from the spender's hand, read with the spender as "you": its printed resources ("Resource Card",
1239
+ * p. 37), wild included, doubled by its own text for the card paid for (The Power of Flight), with its own "When
1240
+ * you spend this card" ability if it has one and "spend this card only in hero form" read for the spender. It is a
1241
+ * card that paid (`PAID_CARDS_SLOT`, `paid.cards.<cardType>`), and its spending is announced as the spender's
1242
+ * (`resourcesSpent`: "after you spend this card").
1243
+ * - **Only spending.** The card is not in a hand: it is not counted in one, not a card "discarded from your hand"
1244
+ * for a discard cost or an effect, and cannot be played. A card that restricts what pays for it ("you can only
1245
+ * spend [physical] resources") is read as for any other source.
1246
+ * - **Where it goes.** Spending it discards it from under its host to its owner's discard pile (RRG 1.8 "Tuck",
1247
+ * p. 45: a tucked card is out of play, so it does not leave play). Logged `tuckedCardSpent`; heard as a
1248
+ * `tuckedCardDiscarded` with `how: "cost"`, its host as the source and the host's side as `by`, when an ability
1249
+ * listens (`recordTuckedDiscard`): the discard pays a cost, and the host's rule is what let it be spent.
1250
+ * - **Who.** `by` is read with the rule's speaker as "you" (`each`: any player). A player it does not name cannot
1251
+ * spend the card, alliance or not, except that a group payment (RRG 1.8 "Alliance", p. 6) takes it from a player
1252
+ * it does name, who is then the spender.
1253
+ * - A constant like any other: off while its `while` is false, under a blank text box and once its card has left
1254
+ * play, when the cards under it are discarded by the game (RRG 1.8 "Tuck", p. 45).
1255
+ *
1256
+ * Read by `tuckedSpendSources` / `tuckedSpender` (`rules.ts`), which `priceOf`, `paymentOptions` and `payPayment`
1257
+ * consult; everything that lists or suggests payments works from `paymentOptions`.
1258
+ */
1259
+ | {
1260
+ readonly kind: "spendableFromTucked";
1261
+ readonly cards?: TargetQuery;
1262
+ readonly by: PlayerRef;
1263
+ readonly while?: Predicate;
1264
+ }
1265
+ /**
1266
+ * "While paying costs on attached card, any player may help pay those costs." (docs/phase7-wave10-hero-packs.md
1267
+ * H3.19; owner answer 21B, an interpretation: no ruling names the card.) While the rule is in force, the cost of an
1268
+ * ability printed on a card in play that `card` matches is paid as a group, the way an alliance card's is (RRG 1.8
1269
+ * "Alliance", p. 6: "any player may contribute to paying those costs"; neither text limits "costs" to resources):
1270
+ *
1271
+ * - **Still one payment, by the player using the ability** (RRG 1.8 "Cost", p. 13). Who may trigger the ability is
1272
+ * untouched (an obligation's holder, an attachment's host's controller, RRG 1.8 pp. 8, 30); the rule opens the
1273
+ * paying only. Types, overpayment and every "paid with" reader see the whole payment; each helper's spending is
1274
+ * announced as theirs (`resourcesSpent`, one per player).
1275
+ * - **Resources**: every player's hand cards and resource abilities are sources, each read from its own player's
1276
+ * point of view (their form, limit and discard pile), exactly as for an alliance card (`paidAsGroup`).
1277
+ * - **A part paid with a card** may take another player's card: a discard from hand (`discardFromHand`) from any
1278
+ * hand, a card in play to exhaust, discard, return or damage (`InPlayCostPick`) under any player's control.
1279
+ * - **A part worded "you" with no card named** ("take 2 damage", "discard the top card of your deck"; the
1280
+ * `DelegableCostPart` list) may be handed whole to one other player in the command (`CostSelection.paidBy`).
1281
+ * - **A part that names the user's own card stays with the user**: "exhaust your hero" (`exhaustIdentity`), counters
1282
+ * on or healing of their identity, and everything the ability's own card does to itself ("exhaust this card",
1283
+ * "discard this card"). No command can hand those over.
1284
+ *
1285
+ * Only a card in play is named, so nothing played from a hand is paid for under this rule. A constant like any
1286
+ * other: off while its `while` is false, under a blank text box and once its card has left play.
1287
+ *
1288
+ * Read by `costsPayableByAnyPlayer` (`rules.ts`), which `paidAsGroup` and `planCost` consult.
1289
+ */
1290
+ | {
1291
+ readonly kind: "costsPayableByAnyPlayer";
1292
+ readonly card: TargetQuery;
1293
+ readonly while?: Predicate;
1294
+ }
1295
+ /**
1296
+ * "You take the first turn during the player phase. (When your turn is done, play proceeds in player order, starting
1297
+ * with the first player. You do not take another turn.)" (Field Commander, `cyclops` 33004; docs/phase7-wave6.md
1298
+ * §3.27). Read once, as the player phase begins (§4.1 Q16): `player` (resolved like `cannotRecover`'s) takes the
1299
+ * phase's first turn, then the rest take theirs in player order from the first player, skipping them. Only the turn
1300
+ * order moves: the first player token and every other "in player order" sequence (the end-of-phase discard, villain
1301
+ * activations, encounter cards, priority) stay as they are (RRG 1.8 "First Player", p. 19; "In Player Order", p. 24).
1302
+ * Gained mid-phase, it changes the next player phase's turns, not this one's.
1303
+ */
1304
+ | {
1305
+ readonly kind: "takesFirstTurn";
1306
+ readonly player: PlayerRef;
1307
+ readonly while?: Predicate;
1308
+ }
1309
+ /** "… cannot ready" (All Tied Up). */
1310
+ /**
1311
+ * "Prevent all damage to Ebony Maw" (Abjuration, `mts` 21082; docs/phase7-wave4.md §3.20): damage dealt to a card
1312
+ * `target` matches is dealt and prevented (RRG 1.8 "Prevent", p. 35), all of it, by the card carrying this rule —
1313
+ * which is what makes "After Abjuration prevents 2 or more damage from a single attack" a trigger on that card
1314
+ * (`TriggerEvent damagePrevented`). "Cannot take damage" (`cannotTakeDamage`) still wins over it (RRG 1.8 "'Cannot'").
1315
+ *
1316
+ * `consequential`: only an ally's consequential damage is prevented — "Until the end of the phase, prevent all
1317
+ * consequential damage each ally would take from attacking." (Group Assault, `mut_gen` 32183; Rescue Operation, 32193,
1318
+ * "from thwarting"; docs/phase7-wave6.md §3.31). Any other damage to the same character is untouched.
1319
+ */
1320
+ | {
1321
+ readonly kind: "preventAllDamage";
1322
+ readonly target: TargetQuery;
1323
+ readonly consequential?: ConsequentialDamageScope;
1324
+ readonly while?: Predicate;
1325
+ }
1326
+ /**
1327
+ * "… cannot ready" (All Tied Up). `bySource: "playerCard"`: "Heroes and allies cannot be readied by player card
1328
+ * effects" (Unnatural Storm, `mts` 21159; docs/phase7-wave4.md §3.19): only a ready caused by a player card's ability
1329
+ * is stopped; the end-of-phase ready and encounter card effects still ready them.
1330
+ */
1331
+ | {
1332
+ readonly kind: "cannotReady";
1333
+ readonly target: TargetQuery;
1334
+ readonly while?: Predicate;
1335
+ readonly bySource?: "playerCard";
1336
+ }
1337
+ /**
1338
+ * "Robert Kelly cannot be healed by player card effects" (Find the Senator / Protect the Senator, `mut_gen`
1339
+ * 32065a/b; docs/phase7-wave6.md §3.12). A heal of a card `target` matches heals nothing (logged `healBlocked`).
1340
+ * `bySource: "playerCard"`: only a heal whose source is a player card is stopped (an ability on a player card, a
1341
+ * player's heal cost, a basic recovery, which is the identity's own power); an encounter card's heal (Medical
1342
+ * Emergency) still heals. Without `bySource` nothing heals it. Moving damage off it is healing it (RRG 1.8 "Heal",
1343
+ * p. 22; "Move", p. 21), so a blocked move has no valid source and is not made.
1344
+ */
1345
+ | {
1346
+ readonly kind: "cannotBeHealed";
1347
+ readonly target: TargetQuery;
1348
+ readonly while?: Predicate;
1349
+ readonly bySource?: "playerCard";
1350
+ }
1351
+ /**
1352
+ * "As an additional cost for the engaged player to ready a hero or ally they control, the player must spend a
1353
+ * [mental] resource" (Mister Fear, `hood` 24027); "As an additional cost for a player to ready a support, that player
1354
+ * must spend 1 resource of any type" (Undermine Support, `aos` 50174). docs/phase7-wave4.md §3.19.
1355
+ *
1356
+ * RRG 1.8 "Ready" (p. 36): "If there is an additional cost for a player to ready a card, that player can choose not to
1357
+ * pay that cost. If they do not pay the cost, the card does not ready." Every ready of a card `target` matches asks
1358
+ * the player readying it (the controller at the end-of-phase ready; the resolving player for a card effect) to pay
1359
+ * `resources`; `player` narrows whose readies are taxed ("the engaged player"). Several rules add up.
1360
+ */
1361
+ | {
1362
+ readonly kind: "readyCost";
1363
+ readonly target: TargetQuery;
1364
+ /** A number is that many resources of any type (Undermine Support's "1 resource of any type"). */
1365
+ readonly resources: number | ResourceRequirement;
1366
+ readonly player?: PlayerRef;
1367
+ readonly while?: Predicate;
1368
+ }
1369
+ /**
1370
+ * "You cannot change form" (All Tied Up): the hero/alter-ego change. With `formType`, "You cannot change energy forms"
1371
+ * (Loss of Control, `mts` 21026): the additional form of that type only (docs/phase7-wave4.md §3.1). Each reading
1372
+ * blocks only its own kind of change; which additional forms a bare "cannot change form" reaches is §4 Q8.
1373
+ * `exceptSource: "self"`: a change caused by the rule's own card is not blocked — Permanently Phased (`mut_gen`
1374
+ * 32055) is in play before its When Revealed "Flip your mass form upgrade to Phased" resolves (RRG 1.8 "Reveal",
1375
+ * p. 38), and that flip still happens (docs/phase7-wave6.md Q49 = A). Every other source stays blocked.
1376
+ */
1377
+ | {
1378
+ readonly kind: "cannotChangeForm";
1379
+ readonly player: PlayerRef;
1380
+ readonly formType?: string;
1381
+ readonly exceptSource?: "self";
1382
+ readonly while?: Predicate;
1383
+ }
1384
+ /**
1385
+ * "As an additional cost to change to hero form during your turn, you must spend 2 resources of the same type"
1386
+ * (docs/phase7-wave8.md §3.63): a change between hero and alter-ego form by each player `player` names costs `cost`
1387
+ * as well. `to`: only a change that ends in that form (absent, either way); `during: "ownTurn"`: only during that
1388
+ * player's own turn. An additional form's change (`changeAdditionalForm`) is never covered.
1389
+ *
1390
+ * RRG 1.8 "Cost" (p. 14): an additional cost is paid "simultaneously with the cost that is being added to", and "if
1391
+ * they cannot pay for all of the costs at once, then they do not pay any of the costs and the effect associated
1392
+ * with the costs does not occur". So:
1393
+ *
1394
+ * - the turn's own option (the `changeForm` command; RRG 1.8 "Form, Change Form", p. 21) carries the payment and is
1395
+ * refused without one that pays, which leaves the once-per-round change unused;
1396
+ * - a change the player makes by an ability of a player card they resolve asks them for the payment as the change
1397
+ * resolves, and does not happen when they cannot or do not pay (§4.2 Q37 = A);
1398
+ * - a change an encounter card makes (an obligation's or a treachery's "change to alter-ego form") is not the
1399
+ * player's to pay for: it costs nothing and happens (Q37 = A);
1400
+ * - except by an Action printed on an encounter card that the player triggers: that is a change they make, asked
1401
+ * for and paid like one by their own card (owner decision, 2026-10-08, docs/phase7-wave8.md §4.1 row 80).
1402
+ *
1403
+ * The cost is the player's alone, paid for no card: a resource generated "for" a kind of card (`generatesFor`) and
1404
+ * another player's hand cannot pay it. Several rules that cover one change are all paid at once.
1405
+ */
1406
+ | {
1407
+ readonly kind: "formChangeCost";
1408
+ readonly player: PlayerRef;
1409
+ readonly to?: Form;
1410
+ readonly during?: "ownTurn";
1411
+ readonly cost: AbilityCost;
1412
+ readonly while?: Predicate;
1413
+ }
1414
+ /**
1415
+ * "Until the end of the phase, reduce the cost to play each Team-Up card by 1" (Defend Our City 61029): every play by
1416
+ * a player `player` names of a card `appliesTo` matches has its resource cost changed by `delta` (negative reduces),
1417
+ * as a `CostModifierSpec` does, but as a rule, so `applyRuleUntil` makes it lasting (RRG 1.8 "Lasting Effects",
1418
+ * p. 26). Read on every play while it lasts: the cards in hand when it was created and any drawn later. Added to the
1419
+ * other cost modifiers and floored at 0 with them (RRG 1.8 "Cost", p. 13; "Modifiers", p. 29: below zero is zero).
1420
+ * `appliesTo` and `delta` are read with the rule's "you" (the creating ability's controller). `playCostContributions`
1421
+ * lists it under the rule's own card.
1422
+ */
1423
+ | {
1424
+ readonly kind: "playCostModifier";
1425
+ readonly player: PlayerRef;
1426
+ readonly appliesTo: TargetQuery;
1427
+ readonly delta: number | ValueSpec;
1428
+ readonly while?: Predicate;
1429
+ }
1430
+ /**
1431
+ * "Players cannot attack other villains." (Distracting Taunts): player attacks against a matching `target` are
1432
+ * illegal. `player` scopes the restriction to one player — "You cannot attack Kang" (Fear of Kang, `toafk` 11049).
1433
+ * Absent, it binds the whole table, which is what Distracting Taunts' plural printed wording means; every caller
1434
+ * that predates the field keeps that meaning. Resolved with "you" as the rule card's speaker (`speakerOf`), so an
1435
+ * obligation's "you" is the player whose play area holds it (RRG 1.8 "Obligation", p. 30: "Abilities on
1436
+ * obligations that use the words 'you' or 'your' apply only to the player whose play area the obligation is in").
1437
+ *
1438
+ * **The attacking player is the attacker's controller**, not whoever's turn it is: RRG 1.8 "Guard" (p. 21) states
1439
+ * that "that player cannot use cards they control to attack a villain" is *equivalent to* the constant ability
1440
+ * "The engaged player cannot attack any villain", so an attack by a player's ally is that player's attack. An
1441
+ * attack by an enemy has no controller and is never restricted by this rule. docs/phase7-wave2.md §25.
1442
+ */
1443
+ | {
1444
+ readonly kind: "cannotAttack";
1445
+ readonly target: TargetQuery;
1446
+ readonly player?: PlayerRef;
1447
+ readonly while?: Predicate;
1448
+ /**
1449
+ * "Drax cannot attack minions." (`gam` 18019, docs/phase7-wave3.md §3.26): restricts *this character*, not
1450
+ * the controlling player — a different attack by the same player (another ally, their own hero) is unaffected.
1451
+ * The mirror of `attackKeywords.attacker`, over the same "who is making the attack" question. Matched against
1452
+ * the attacking character itself, before `player` (if also given) narrows further by controller.
1453
+ */
1454
+ readonly attacker?: TargetQuery;
1455
+ /**
1456
+ * "You cannot make basic attacks" (docs/phase7-wave9.md §3.72): only a **basic** attack is forbidden, read as
1457
+ * `attackKeywords.basicOnly` reads it (RRG 1.8 "Basic Power", p. 10). An attack made by a card's ability, an
1458
+ * "(attack)"-labeled one included, is not asked, whoever makes it. A basic attack a card effect has a character
1459
+ * make is still that character's basic attack, so it is forbidden too (RRG 1.8 "'Cannot'", p. 11). "You" on an
1460
+ * attachment is its identity, so the printed sentence is `attacker` (the host) with every enemy as `target`:
1461
+ * the player's allies still make basic attacks (RRG 1.8 "You, Your", p. 49).
1462
+ */
1463
+ readonly basicOnly?: true;
1464
+ }
1465
+ /**
1466
+ * "Any player can attack this card as if it were a minion." (docs/phase7-wave9.md §3.50): each card in play matching
1467
+ * `card` (the rule's own card: `{ self: true }`) is a target of player attacks though it is no character.
1468
+ *
1469
+ * - **Where an attack chooses its target.** A basic attack may be aimed at it, and it is a candidate wherever an
1470
+ * attack chooses "an enemy" or "a minion": a target choice whose chosen card an `attack` instruction, or an
1471
+ * "(attack)"-labeled ability's damage instruction, then attacks (`EffectContext.choosingAttackTarget`). For that
1472
+ * choice it reads as a minion engaged with no player, with its own traits. Every player may attack it, with any
1473
+ * character that may attack it.
1474
+ * - **To a `cannotAttack` rule** it is no enemy (RRG 1.8 "Enemy", p. 18), so the card's own "attached character
1475
+ * cannot attack enemies other than this card" (`target: { categories: ["enemy"], self: false }`) leaves that
1476
+ * character free to attack this card and any other copy. A rule that names minions ("cannot attack minions")
1477
+ * does forbid attacking it, the attack being made as on a minion, and so does an unqualified one (`target: {
1478
+ * categories: ["enemy"] }`, the printed "cannot attack").
1479
+ * - **Not otherwise.** It is no minion, enemy or character for anything else: an ability that is not an attack, an
1480
+ * attack that names its enemies as a group ("each minion engaged with you", "the villain and each minion"), a
1481
+ * count of enemies, "after you attack an enemy". Guard protects villains only (RRG 1.8 "Guard", p. 21), not it.
1482
+ * - **Damage.** An attack's damage to it is placed on it. It has no hit points, so it is never defeated and no
1483
+ * damage dealt to it is excess (RRG 1.8 "Overkill", p. 31); it has no status cards and none of a minion's
1484
+ * keywords. What its damage does is its own text (a `stateCheck` on the card).
1485
+ */
1486
+ | {
1487
+ readonly kind: "attackableAsMinion";
1488
+ readonly card: TargetQuery;
1489
+ readonly while?: Predicate;
1490
+ }
1491
+ /** "Resolve each 'When Revealed' ability that you reveal 1 additional time." (Media Coverage). */
1492
+ | {
1493
+ readonly kind: "repeatWhenRevealed";
1494
+ readonly player: PlayerRef;
1495
+ readonly times: number;
1496
+ readonly while?: Predicate;
1497
+ }
1498
+ /**
1499
+ * "Increase your ally limit by N" — for the controller of the card (The Triskelion), optionally conditional
1500
+ * ("If each of your allies has the Avenger trait, increase your ally limit by 1" — Avengers Tower, `cap` pack).
1501
+ */
1502
+ | {
1503
+ readonly kind: "allyLimit";
1504
+ readonly amount: number;
1505
+ readonly while?: Predicate;
1506
+ }
1507
+ /**
1508
+ * "Stinger does not count against your ally limit." (docs/phase7-wave2.md §3.5): matching allies are left out of the
1509
+ * count. RRG 1.8 "Ally Limit" (p. 7): the check "occurs before abilities that resolve upon entering play", so this is a
1510
+ * constant read at the check, not an ability that resolves.
1511
+ */
1512
+ | {
1513
+ readonly kind: "excludedFromAllyLimit";
1514
+ readonly target: TargetQuery;
1515
+ readonly while?: Predicate;
1516
+ }
1517
+ /**
1518
+ * "This card does not count toward the player side scheme limit." (docs/phase7-wave7.md §3.2), the sibling of
1519
+ * `excludedFromAllyLimit`: matching player side schemes are left out of the count, so one entering play does not
1520
+ * cause a discard, and they are not among the schemes a player may discard for the limit. A constant read at the
1521
+ * check (RRG 1.8 "Player Side Scheme Limit", p. 34), not an ability that resolves.
1522
+ */
1523
+ | {
1524
+ readonly kind: "excludedFromPlayerSideSchemeLimit";
1525
+ readonly target: TargetQuery;
1526
+ readonly while?: Predicate;
1527
+ }
1528
+ /**
1529
+ * "Max 1 [per player] synergy counters here." (docs/phase7-wave9.md §3.61; `counter-limit.ts`): each card in play
1530
+ * matching `card` (the rule's own card: `{ self: true }`) holds at most `max` counters of `counterType`, the type as
1531
+ * the card stores it. `max` is read at each placement with the rule's card as `self`.
1532
+ *
1533
+ * - **Every placement is bound**, not one ability's (RRG 1.8 "Max, Maximum", p. 28, read for a sentence on the card
1534
+ * that holds the counters): an effect's `addCounters`, a counter cost, a card's entering-play counters and counters
1535
+ * arriving by `moveCounters` all place `min(amount, max − held)`.
1536
+ * - **The rest is not placed.** It is logged (`GameEvent countersNotPlaced`, reason `limit`) and announces nothing:
1537
+ * `countersPlaced` carries the number really placed, and is not announced for none. A placement the limit stops
1538
+ * entirely is not imminent either, so no "would be placed" interrupt answers it.
1539
+ * - **A moved counter that cannot arrive does not move** (RRG 1.8 "Move", p. 30: "If there is no valid source or
1540
+ * destination for a move, the move cannot be made"): it stays on the card it was on.
1541
+ * - A choice of where to place a counter still offers a full card (the cards do not say "that can hold one");
1542
+ * choosing it places nothing.
1543
+ * - Counters already over the limit when the rule comes into force stay; nothing is removed.
1544
+ */
1545
+ | {
1546
+ readonly kind: "counterLimit";
1547
+ readonly card: TargetQuery;
1548
+ readonly counterType: string;
1549
+ readonly max: ValueSpec;
1550
+ readonly while?: Predicate;
1551
+ }
1552
+ /**
1553
+ * "Max 3 cards tucked here." (Ionic Physiology, `wonder_man` 58002; docs/phase7-wave10-hero-packs.md §H3.12;
1554
+ * `tuck-limit.ts`): each card in play matching `card` (the rule's own card: `{ self: true }`) has at most `max` cards
1555
+ * tucked under it, faceup or facedown. `max` is read at each tuck with the rule's card as `self`. The Wonder Man
1556
+ * insert, clarification 1: a card is tucked there only while fewer than three are; ruling March 6, 2026 (4), step
1557
+ * 3: "trigger Ionic Physiology to tuck Leading Blow (if under 3 cards)".
1558
+ *
1559
+ * - **Every tuck is bound**, not one ability's: `tuckCards` by any card, a tuck sent there by `replaceTuckHost`, and
1560
+ * a leaving card sent there by `replaceLeaveDestination`.
1561
+ * - **A `tuckCards` tucks what there is room for**, in the order it names its cards. Each card left over stays
1562
+ * where it was and is logged (`GameEvent cardNotTucked`, reason `limit`); it is not imminent, so no "would be
1563
+ * tucked" interrupt answers it.
1564
+ * - **With no room it tucks nothing and did not resolve**: the text after a "Then" is skipped (`preThenUnresolved`,
1565
+ * cause `tuckRefused`; RRG 1.8 "'Then'", p. 44). A tuck that fit at least one card resolved.
1566
+ * - **An ability that only tucks under a full card cannot be initiated** (`abilityTargetFault`, fault `tuckFull`):
1567
+ * every effect of it is such a `tuckCards` or a `then`, so nothing of it could resolve.
1568
+ * - A leaving card that finds no room makes the move the tuck replaced, as it does when the host has left play.
1569
+ * - Cards already over the limit when the rule comes into force stay; nothing is discarded. "Discard all but 4" is
1570
+ * a state check on the card that says so (Silk, docs/phase7-wave9.md §3.39), not this rule.
1571
+ */
1572
+ | {
1573
+ readonly kind: "tuckLimit";
1574
+ readonly card: TargetQuery;
1575
+ readonly max: ValueSpec;
1576
+ readonly while?: Predicate;
1577
+ }
1578
+ /**
1579
+ * "Any player in your pod can attack The Mangog as if it were in their game area." / "… can thwart Door Between
1580
+ * Worlds as if it were in their game area." (`tt` 55041, 55046; docs/phase7-wave9.md §3.67; MC55 pp. 16–17). The
1581
+ * exception MC55 p. 12 allows to "cards and components in one game area cannot affect another game area".
1582
+ *
1583
+ * **It has no effect while the pod is one group**: every player of the pod is already in this game area, so the card
1584
+ * is attacked or thwarted as any other (MC55 p. 10). Declared so the two cards' scripts do not change when groups
1585
+ * can reach each other's areas; no reader in the engine consults it yet.
1586
+ */
1587
+ | {
1588
+ readonly kind: "reachableFromPod";
1589
+ readonly card: TargetQuery;
1590
+ readonly by: "attack" | "thwart";
1591
+ }
1592
+ /**
1593
+ * "Your allies, upgrades, and supports enter play exhausted." (docs/phase7-wave7.md §3.36 gap 1): a constant on one
1594
+ * card that makes other cards enter play exhausted. `target` is read as each card enters play, by any route (played,
1595
+ * put into play by an effect, revealed, setup), with "you" as the rule's speaker (`speakerOf`: an attachment on an
1596
+ * identity speaks to that identity's player). RRG 1.8 "Ready" (p. 36) has cards "enter play in a ready state"; the
1597
+ * card's text replaces that (The Golden Rules, p. 4). The card is placed exhausted, not exhausted by an effect or a
1598
+ * cost, as `playFromHand.entersExhausted` places one. A card that changes controller or flips has not entered play
1599
+ * (RRG 1.8 "Enters Play", p. 18: "transitions from an out-of-play area into play").
1600
+ */
1601
+ | {
1602
+ readonly kind: "entersPlayExhausted";
1603
+ readonly target: TargetQuery;
1604
+ readonly while?: Predicate;
1605
+ }
1606
+ /**
1607
+ * "Exhaust each ally you control." printed with no timing trigger (docs/phase7-wave7.md §4.1, 44032): text without a
1608
+ * bold trigger is a constant ability (RRG 1.8 "Ability", p. 4), so it is a standing instruction while its card is in
1609
+ * play, not a one-time effect. A continuous rule in the family of `keepsGivingStatus`, applied between frames: every
1610
+ * card in play that `target` matches and that is ready becomes exhausted, logged `cardExhausted` once (an exhausted
1611
+ * card is not exhausted again, RRG 1.8 "Exhausted", p. 19). It covers a card already in play when the rule's card
1612
+ * enters, one that enters play, and one that changes control into the query (RRG 1.8 "Ownership and Control", p. 31:
1613
+ * a character that changes control "remains in the same state", and then this applies). `target` is matched from the
1614
+ * rule's speaker, as `cannotReady` is. Nothing is readied when the rule stops applying.
1615
+ */
1616
+ | {
1617
+ readonly kind: "keepsExhausted";
1618
+ readonly target: TargetQuery;
1619
+ readonly while?: Predicate;
1620
+ }
1621
+ /**
1622
+ * "Threat you remove using your basic thwart power (THW) can be divided among schemes as you choose." / "Damage you
1623
+ * deal using your basic attack power (ATK) can be divided among enemies as you choose." (Wasp's Giant form). Matching
1624
+ * characters may use `basicAttack.divide` / `basicThwart.divide`. FAQ "Wasp (#1C)" (RRG 1.8 p. 61): the targets are
1625
+ * chosen and checked (guard, patrol, crisis) when the power is used, each target is attacked, and each retaliate
1626
+ * damages her in the order of her choice. docs/phase7-wave2.md §3.7.
1627
+ */
1628
+ | {
1629
+ readonly kind: "divideBasicPower";
1630
+ readonly power: "attack" | "thwart";
1631
+ readonly target: TargetQuery;
1632
+ /**
1633
+ * Mandatory: "Divide damage from Bombshell's attack among each enemy as evenly as possible" (ruling 2026-01-11
1634
+ * R4). With two or more attackable enemies the command must divide among all of them, shares differing by at
1635
+ * most 1 (the player picks who takes a remainder); a command that does not is refused.
1636
+ */
1637
+ readonly evenly?: true;
1638
+ readonly while?: Predicate;
1639
+ }
1640
+ /** "When a character thwarts this side scheme, they may use their ATK instead of their THW" (The Red House): `basicThwart.useAtk`. */
1641
+ | {
1642
+ readonly kind: "thwartWithAtk";
1643
+ readonly scheme: TargetQuery;
1644
+ readonly while?: Predicate;
1645
+ }
1646
+ /**
1647
+ * "Use your DEF in place of your THW and ATK. (Ignore any modifiers to your THW and ATK.)" (The Best Offense...,
1648
+ * `fne` 60052; docs/phase7-wave11.md §3.10): `{ target, stats: ["thw", "atk"], use: "def" }`. Each read of a listed
1649
+ * stat of a matching character (`query.ts characterStat` / `characterProfile`, so every basic power, every "equal to
1650
+ * your ATK" and every effect that names the stat) is that character's `use` stat as it stands, its own modifiers
1651
+ * included; the listed stat's base override and modifiers are ignored. Ruling June 25, 2026 - Ruling 3 (on RRG 1.8
1652
+ * "Thwart", p. 43, and "Attack", p. 8): basic thwart thwarts for the DEF, Go All Out uses the DEF for its THW, ATK
1653
+ * and DEF, As One! uses the DEF in place of the ATK. Not a choice and not one use, unlike `modifyBasicPower.useStat`
1654
+ * and `thwartWithAtk`. The `use` stat itself is read plainly, never through another such rule. Consequential damage
1655
+ * is unchanged (the power used still decides it, docs/phase7-wave6.md §4.1 Q22). A `modifyAttack.atkBonus` on the
1656
+ * attack is an ATK modifier too, so it is ignored (`resolve/event.ts`).
1657
+ *
1658
+ * `target` and `while` must not read a character's stats (a `stat` value, a stat comparison): the rule is consulted
1659
+ * inside every stat read, so such a read would recurse.
1660
+ */
1661
+ | {
1662
+ readonly kind: "statInPlaceOf";
1663
+ readonly target: TargetQuery;
1664
+ readonly stats: readonly ("atk" | "thw" | "def" | "rec" | "sch")[];
1665
+ readonly use: "atk" | "thw" | "def" | "rec" | "sch";
1666
+ readonly while?: Predicate;
1667
+ }
1668
+ /**
1669
+ * "Each of your [Arrow] attacks gain ranged" (Hawkeye's Bow): an `AttackKeyword` granted to *attacks*, not to a
1670
+ * character. RRG 1.8 defines piercing, ranged and overkill as properties of an attack ("An attack with the …
1671
+ * keyword"), so a grant can be keyed on either end of one:
1672
+ * - `attacker` matches the attacking character ("attacks made by your allies gain overkill");
1673
+ * - `via` matches the card whose ability is making the attack — the event for a "Hero Action (attack)", the
1674
+ * upgrade or ally for an ability on one. A basic attack has no such card and never matches a rule with `via`.
1675
+ *
1676
+ * - `basicOnly` matches only a **basic** attack — "your basic attacks gain piercing" (Red Room Training 13008,
1677
+ * Brute Force `qsv`, Psi-Katana `psylocke`). RRG 1.8 "Basic Power" (p. 10): a basic attack is a character using
1678
+ * its ATK, which is exactly what `attack.basic` records, so an attack an event or ability makes is excluded even
1679
+ * when the same character makes it. The mirror of `via`, which excludes a basic attack rather than requiring one.
1680
+ *
1681
+ * - `target` matches the **attacked** character ("attacks against attached minion … gain overkill", Cruisin' for a
1682
+ * Bruisin' 62009; docs/phase7-wave11-hero-packs.md §H3.15), the mirror of `attacksLoseKeywords.target`. It is read
1683
+ * only where the attacked character is known (`AttackKeywordContext.targetInstanceId`: as the attack's damage is
1684
+ * made), so a rule with `target` never answers "when you make an overkill attack" before a target is in hand.
1685
+ *
1686
+ * All four are optional and ANDed. A rule with none of them grants the keyword to every attack in the game, which
1687
+ * no card does; `@mc/cards` should always set at least one.
1688
+ */
1689
+ | {
1690
+ readonly kind: "attackKeywords";
1691
+ readonly keywords: readonly AttackKeyword[];
1692
+ readonly attacker?: TargetQuery;
1693
+ readonly via?: TargetQuery;
1694
+ readonly basicOnly?: boolean;
1695
+ readonly target?: TargetQuery;
1696
+ readonly while?: Predicate;
1697
+ }
1698
+ /**
1699
+ * "Attacks against attached minion deal 2 additional damage" (Cruisin' for a Bruisin' 62009;
1700
+ * docs/phase7-wave11-hero-packs.md §H3.15): while it applies, a player's attack (basic, or made by a card's ability)
1701
+ * and an enemy's attack on another enemy deal `amount` more damage to a character matching `target`, added where
1702
+ * `modifyAttack.extraDamage` is: after the attack's amount is computed, to each instance of attack damage dealt to
1703
+ * that character (owner ruling Q53). `attacker` narrows it to attacks by a matching character. Several matching
1704
+ * rules add up.
1705
+ *
1706
+ * Not read for an enemy's attack on a hero or ally (RRG 1.8 "Attack (Enemy Activation)", p. 9): 62009 only attaches
1707
+ * to minions, so no card needs it yet; a card that does should settle whether "against" there means the attacked
1708
+ * character or the defender.
1709
+ */
1710
+ | {
1711
+ readonly kind: "attacksDealExtraDamage";
1712
+ readonly amount: number;
1713
+ readonly target: TargetQuery;
1714
+ readonly attacker?: TargetQuery;
1715
+ readonly while?: Predicate;
1716
+ }
1717
+ /**
1718
+ * "Attached character gains retaliate 1 and **attacks against them lose piercing**" (Cap's Shield, `cw` 56143;
1719
+ * docs/phase7-wave10.md §3.18): while it applies, an attack does not have these keywords against a character
1720
+ * matching `target`, whatever gave them: the attacker's printed or granted keyword, the card making the attack
1721
+ * ("this attack gains piercing"), a grant made during the attack, or an `attackKeywords` rule. RRG 1.8 "Lose" (p. 27):
1722
+ * "A lost characteristic cannot be regained while the ability causing it to be lost is in effect, even if a new
1723
+ * effect would cause the characteristic to be gained", so a loss beats every gain, as a card's lost keyword does.
1724
+ *
1725
+ * Scoped to the attacked character, since RRG 1.8 words each keyword by what the attack does to it: "Piercing"
1726
+ * (p. 32) discards the tough status cards of the character the attack deals damage to, "Overkill" (p. 31) spills
1727
+ * the excess of the character it defeats, "Ranged" (p. 35) ignores that character's retaliate. The same attack
1728
+ * keeps the keyword against any other character. Read by `attackKeywordsOf` when it is given the attacked
1729
+ * character, and again as the damage is dealt (`lostAttackKeywords`).
1730
+ *
1731
+ * `attacker` scopes the loss to attacks *made by* a matching character instead ("Bullseye's attacks lose ranged",
1732
+ * Deadly Sai 60070; docs/phase7-wave11-scenarios.md §S7 E19): such an attack has none of these keywords against any
1733
+ * character, and is read so even where no attacked character is known yet ("when an enemy makes a ranged attack").
1734
+ * The same "Lose" sentence makes it beat every grant, "attached villain's attacks gain ranged" (Out Front 60129a)
1735
+ * included. With both set, the two are ANDed; at least one must be set (`@mc/cards` validates it).
1736
+ */
1737
+ | {
1738
+ readonly kind: "attacksLoseKeywords";
1739
+ readonly keywords: readonly AttackKeyword[];
1740
+ readonly target?: TargetQuery;
1741
+ readonly attacker?: TargetQuery;
1742
+ readonly while?: Predicate;
1743
+ }
1744
+ /**
1745
+ * "You cannot play hero-specific cards." (Depowered): `player` cannot play cards matching `cards`. FAQ "Depowered
1746
+ * (#20)" (RRG 1.8 p. 60): Invocation cards "are merely resolved, not played", so a resolve is not blocked.
1747
+ */
1748
+ | {
1749
+ readonly kind: "cannotPlay";
1750
+ readonly player: PlayerRef;
1751
+ readonly cards: TargetQuery;
1752
+ readonly while?: Predicate;
1753
+ }
1754
+ /**
1755
+ * "[A title] cannot enter play during this game." (a campaign instruction, MC45 p. 20; docs/phase7-wave8.md §3.43.)
1756
+ * A card matching `cards` cannot enter play from out of play by any means, for any player (RRG 1.8 "'Cannot'",
1757
+ * p. 11: the restriction "is absolute, and cannot be countermanded by other abilities"):
1758
+ *
1759
+ * - it cannot be played: the play is refused before any cost is paid, for whichever destination it names
1760
+ * (`playDestination`), by the `playCard` command and by an effect that plays a card alike;
1761
+ * - an effect that would put it into play does nothing to it, and it stays where it was
1762
+ * (`putIntoPlayRefused { reason: "cannotEnterPlay" }`); a choice of a card to put into play does not offer it
1763
+ * (`TargetQuery.canEnterPlay`, a cost's pick of a card to put into play), and a swap that would bring it into play
1764
+ * is refused.
1765
+ *
1766
+ * Only entering play is stopped (RRG 1.8 "Enters Play", p. 18). The card may be in a deck, be drawn, be discarded
1767
+ * and be spent as a resource; an event is never in play (RRG 1.8 "Event", p. 18), so one that matches is played as
1768
+ * always. A card already in play is not removed, and a flip is not an entry. Match by title (`{ name }`) to cover
1769
+ * every printing. A scenario-level rule (`GameSetupConfig.scenarioRuleSpecs`), though a card may carry it.
1770
+ *
1771
+ * Not covered: an encounter card that is *revealed* and would enter play by its own reveal. No printed rule of this
1772
+ * kind names an encounter card, and the RRG gives no disposition for one (the unique rule's "it is discarded" is that
1773
+ * rule's own). Decide it when a card needs it.
1774
+ *
1775
+ * `player`: "You cannot have more than 1 Shapeshift upgrade in play." (Teddy Altman, `cw` 56029b;
1776
+ * docs/phase7-wave10-box-heroes.md B3.4), a constant on an identity face with `while` "you control one". The rule
1777
+ * then stops a matching card only from being played or put into play **under the control of** a player the ref
1778
+ * names ("you" is the rule's speaker), and nobody else's card. Ruling January 11, 2026 - Ruling 1: the ability
1779
+ * "prevents playing another Shapeshift upgrade while already having one in play (cannot play a second and discard
1780
+ * down)". An entry that names no controlling player is not stopped by a rule with `player`. The refusal names the
1781
+ * rule's card (`enterPlayBarMessage`).
1782
+ */
1783
+ | {
1784
+ readonly kind: "cannotEnterPlay";
1785
+ readonly cards: TargetQuery;
1786
+ readonly while?: Predicate;
1787
+ readonly player?: PlayerRef;
1788
+ }
1789
+ /**
1790
+ * A change to one threat value of a named main scheme stage, for a scenario or campaign rule with no card to carry a
1791
+ * `StatModifierSpec` (`GameSetupConfig.scenarioRuleSpecs`, `CampaignNode.scenarioRuleSpecs`). It holds only while
1792
+ * `stage` is showing, so it reaches a first stage at setup and a later stage as it is placed, and it is one more
1793
+ * modifier in `mainSchemeValue`: added before the single floor at 0 of RRG 1.8 "Modifiers" (p. 29), and not applied
1794
+ * to a dashed value (p. 15).
1795
+ *
1796
+ * `amount` is added, negative to lower the value, and is read in the rule's context, so with no card behind it nothing
1797
+ * is "self" and a per player value counts every player who started. `setBase` replaces the printed value as
1798
+ * `StatModifierSpec.setBase` does ("has a base X of"): an engine reading, not the "set" of RRG 1.8 "Modifiers" (p. 29),
1799
+ * so other modifiers still add to it. A card's own `setBase` is read after a rule's and is the one that holds.
1800
+ */
1801
+ | {
1802
+ readonly kind: "mainSchemeValue";
1803
+ readonly field: SchemeValueName;
1804
+ readonly stage: MainSchemeStageRef;
1805
+ readonly amount: number | ValueSpec;
1806
+ readonly setBase?: true;
1807
+ readonly while?: Predicate;
1808
+ }
1809
+ /**
1810
+ * "Players cannot trigger 'Alter-Ego Action' abilities on obligations." (Corrupted Timestream): an action ability of a
1811
+ * card matching `on`, with that form label (absent: any), cannot be triggered.
1812
+ */
1813
+ | {
1814
+ readonly kind: "cannotTriggerActions";
1815
+ readonly on: TargetQuery;
1816
+ readonly form?: Form;
1817
+ readonly while?: Predicate;
1818
+ }
1819
+ /**
1820
+ * "You cannot resolve triggered abilities in your hero's printed text box. (Triggered abilities are ones with bold
1821
+ * timing triggers.)" (Induced Panic, `sm` 27153; docs/phase7-wave5.md §4.1 Q70). A triggered ability printed on a
1822
+ * card matching `on` is neither offered nor resolved: every ability with a bold timing trigger (RRG 1.8 "Ability",
1823
+ * p. 4; "Action", p. 6: an action is one too), so actions, resources, interrupts and responses, forced or not
1824
+ * (`select.ts timingWordOf`). Constants, keywords, When Revealed and the like have no timing word and are untouched.
1825
+ * `timings` narrows it to those words.
1826
+ *
1827
+ * `identityFace`: only while a matching identity shows that face ("your hero's printed text box"). An identity's
1828
+ * abilities are read from its live face (`select.ts unblankedAbilityRefs`), so the face is the text box they are
1829
+ * printed in; an alter-ego's abilities stay usable. A forced ability it stops is not initiated: "cannot" is absolute
1830
+ * (RRG 1.8 "'Cannot'", p. 11), and a forced ability that cannot resolve is skipped as one with no valid target is
1831
+ * (RRG 1.8 "Forced", p. 20).
1832
+ *
1833
+ * `player`: "Other players cannot resolve player card abilities during your turn" (docs/phase7-wave7.md §4.1,
1834
+ * 44032): only an ability one of these players would resolve is stopped, whoever controls its card (so another
1835
+ * player's use of an "any player may trigger this" ability on your card is stopped, and your own is not). The players
1836
+ * are read from the rule's speaker. An ability no player resolves (a forced ability on a card of the scenario's that
1837
+ * speaks to nobody) is never stopped by a rule with `player`. `playerCards`: only an ability on a player card (RRG
1838
+ * 1.8 "Player Card", p. 33; `select.ts isPlayerCard`), so an encounter card's abilities stay usable. A forced
1839
+ * ability on a player card is stopped like any other: the Forced entry (p. 20) makes initiation mandatory, and "If
1840
+ * two rules conflict, the rule with 'cannot' takes precedence" (p. 11).
1841
+ */
1842
+ | {
1843
+ readonly kind: "cannotResolveTriggeredAbilities";
1844
+ readonly on: TargetQuery;
1845
+ readonly identityFace?: Form;
1846
+ readonly timings?: readonly AbilityTimingWord[];
1847
+ readonly player?: PlayerRef;
1848
+ readonly playerCards?: true;
1849
+ readonly while?: Predicate;
1850
+ }
1851
+ /**
1852
+ * "When this scheme is defeated, shuffle it into the encounter deck instead of discarding it." (Time Portal): a matching
1853
+ * side scheme that is defeated goes into the encounter deck, which is shuffled, instead of the discard pile.
1854
+ */
1855
+ | {
1856
+ readonly kind: "defeatedIntoEncounterDeck";
1857
+ readonly target: TargetQuery;
1858
+ readonly while?: Predicate;
1859
+ }
1860
+ /**
1861
+ * The general form of `defeatedIntoEncounterDeck` (docs/phase7-wave3.md §3.45): a matching card that is defeated — a
1862
+ * side scheme, an ally or a minion — goes to `to` instead of its discard pile ("… shuffle it into the encounter deck
1863
+ * instead of discarding it", Time Portal, is `to: "encounterDeckShuffle"`). The constant sibling of the interrupt-time
1864
+ * `EffectSpec setDefeatDestination`, which wins when both apply (it is the more specific, later choice). The card is
1865
+ * still defeated; Victory X still sends it to the victory display.
1866
+ */
1867
+ | {
1868
+ readonly kind: "defeatDestination";
1869
+ readonly target: TargetQuery;
1870
+ readonly to: CardDestination;
1871
+ readonly while?: Predicate;
1872
+ }
1873
+ /** "The engaged player must defend against [attacker]'s attacks with an ally they control, if able" (Melter). */
1874
+ | {
1875
+ readonly kind: "mustDefendWithAlly";
1876
+ readonly attacker: TargetQuery;
1877
+ readonly while?: Predicate;
1878
+ }
1879
+ /**
1880
+ * "Vision cannot attack or defend." (Intangible, `vision` 26002); "Grant Ward cannot defend." (`aos` 50022); "Each
1881
+ * character cannot defend against attached villain's attacks." (Tracking Display, `sm` 27152: `target` any character,
1882
+ * `attacker` the host). A matching character is never a legal defender (basic defense) and a "(defense)" ability
1883
+ * does not make it the defender; `attacker` limits it to that enemy's attacks. docs/phase7-wave4.md §3.31. Both
1884
+ * queries are read with "you" as the rule card's speaker (`ActiveRule.context`, docs/phase7-wave6.md §3.77), so "you
1885
+ * cannot defend" on an obligation (Permanently Phased, `mut_gen` 32055) is `target` its holder's identity.
1886
+ */
1887
+ /**
1888
+ * "Players cannot discard attachments that are attached to friendly characters." (Powerful Enchantments, `valk`
1889
+ * 25030): a matching card is not discarded by an ability a player uses (the effects frame's `byPlayer`: a player
1890
+ * card's ability, an action, an optional interrupt or response). Its host's defeat, or an encounter card's own forced
1891
+ * effect, still discards it. Narrower than `cannotLeavePlay`. docs/phase7-wave4.md §3.44.
1892
+ */
1893
+ | {
1894
+ readonly kind: "playersCannotDiscard";
1895
+ readonly target: TargetQuery;
1896
+ readonly while?: Predicate;
1897
+ } | {
1898
+ readonly kind: "cannotDefend";
1899
+ readonly target: TargetQuery;
1900
+ readonly attacker?: TargetQuery;
1901
+ readonly while?: Predicate;
1902
+ }
1903
+ /**
1904
+ * "Falcon does not exhaust to defend until the end of the phase." (Draw Their Fire, `falcon` 53011;
1905
+ * docs/phase7-wave9.md §3.47), carried by `applyRuleUntil`, or a constant's "[this character] does not exhaust to
1906
+ * defend". A character matching `character` (read with "you" as the rule's speaker) makes its basic defense without
1907
+ * exhausting, at every Declare Defender step while the rule lasts:
1908
+ *
1909
+ * - **Offered ready or exhausted.** RRG 1.8 "Defend, Defense" (p. 15): "A hero must exhaust to use this power";
1910
+ * under the rule it does not, so being exhausted does not stop it: "A card ability that allows a hero to be
1911
+ * declared as a defender without exhausting can be used on an exhausted hero" (and the same sentence for an ally),
1912
+ * read for this wording (flagged, §4.2). An exhausted defender stays exhausted; a ready one stays ready.
1913
+ * - **For each attack.** It is a state of the character, not one declaration (`EffectSpec declareDefender
1914
+ * { exhaust: false }` is that), so it may defend every attack of the phase, against any player.
1915
+ * - **Nothing else changes.** It is a basic defense: the hero's DEF reduces the damage (p. 15), an ally takes the
1916
+ * damage, the defender's player becomes the target player, one defender per attack and one defending player at a
1917
+ * time (`defenseBarFor`), `defended` / `basicPowerUsed` are announced, so "after you defend" and "when your hero
1918
+ * defends" abilities resolve as for any defense. Stunned and confused status cards are untouched: they replace
1919
+ * attacks and thwarts (RRG 1.8 "Status Cards", p. 41), not a defense. A character that `cannotDefend` still
1920
+ * cannot, a hero in alter-ego form cannot (only a hero has the basic defense power), and an enemy that must be
1921
+ * defended by an ally (`mustDefendWithAlly`) is unchanged.
1922
+ * - **Only the step's own exhaustion.** An ability that says "exhaust [it] and declare it the defender" exhausts as
1923
+ * its own instruction (`declareDefenderByEffect`), and a cost that exhausts the character is a cost.
1924
+ *
1925
+ * Logged on the declaration (`defenderDeclared.withoutExhausting`); the defend preview's `exhausts` is empty for it.
1926
+ * The rule ending mid-phase (its `while`, its card leaving play, the lasting effect expiring) is read at the next
1927
+ * declaration: a defense already declared stands.
1928
+ */
1929
+ | {
1930
+ readonly kind: "defendsWithoutExhausting";
1931
+ readonly character: TargetQuery;
1932
+ readonly while?: Predicate;
1933
+ }
1934
+ /**
1935
+ * "When Wrecker schemes, place the threat on his side scheme instead of the main scheme" — printed as a constant ★
1936
+ * ability on each Wrecking Crew villain (docs/phase7-wave1.md §3.6). A scheme activation by a matching enemy places
1937
+ * its threat on that villain's signature side scheme while it is in play, else on the main scheme.
1938
+ *
1939
+ * A `TargetRef` names the scheme instead: "When Dark Phoenix schemes, place that threat on Consume the World, if
1940
+ * able" (34029, `named("Consume the World")`; docs/phase7-wave6.md §3.37), read from the rule card. "If able": the
1941
+ * main scheme when the ref finds no scheme in play.
1942
+ */
1943
+ | {
1944
+ readonly kind: "schemeThreatDestination";
1945
+ readonly enemy: TargetQuery;
1946
+ readonly scheme: "ownSignatureSideScheme" | TargetRef;
1947
+ readonly while?: Predicate;
1948
+ }
1949
+ /**
1950
+ * "Excess damage dealt by Thunderball is placed as threat on his corresponding side scheme" (Radioactive Buildup,
1951
+ * 07022). Whenever a card matching `source` deals damage beyond the target's remaining hit points, that much threat
1952
+ * is placed on `scheme`: `"ownSignatureSideScheme"` is the dealing villain's signature side scheme (nothing if it
1953
+ * is not in play), a `TargetRef` is read from the rule card ("his" on an attachment is
1954
+ * `signatureSideSchemeOf { villain: host }`).
1955
+ *
1956
+ * Any damage the source deals, not just its attacks: the card says "excess damage dealt by", not "by his attacks".
1957
+ * Excess damage is the value overkill would spill (RRG 1.8 "Overkill", p. 31, superseding ruling Jan 26, 2026 (3);
1958
+ * `resolve/event.ts` `excessDamageOf`): damage *taken* beyond remaining hit points, so a tough status card, a
1959
+ * prevention or "cannot take damage" leaves none to place (user decision 2026-09-25). See `resolve/event.ts`
1960
+ * `applyDamage` for the ordering and the open overkill question.
1961
+ */
1962
+ | {
1963
+ readonly kind: "excessDamageAsThreat";
1964
+ readonly source: TargetQuery;
1965
+ readonly scheme: "ownSignatureSideScheme" | TargetRef;
1966
+ readonly while?: Predicate;
1967
+ }
1968
+ /**
1969
+ * "Treat the printed text box of each [Tech] player card as if it were blank." (Tech Theft 12026, a side scheme's
1970
+ * constant): a whole *class* of cards, matched live, as against the lasting `blankTextBox` effect, which blanks a
1971
+ * fixed list of cards for a duration. A blanked card has no abilities and no printed keywords (RRG 1.8 "Blank",
1972
+ * p. 10: "the card is treated as if it had no printed text in its text box"); an attachment's printed stat box is
1973
+ * outside the text box and still applies (ruling, Apr 30, 2026 (3) answer 4).
1974
+ *
1975
+ * Read through `blankedByConstantRules` (`select.ts`), which explains why it cannot be a plain predicate in the
1976
+ * ability-lookup leaf: the rule's own target is matched on *printed* characteristics so the lookup cannot recurse,
1977
+ * and a rule never blanks its own source.
1978
+ *
1979
+ * On an **identity** ("Treat your identity's printed text box as if it were blank (except for traits)", an
1980
+ * attachment's `{ hostOfSelf: true }` or an obligation's `{ categories: ["identity"], controller: "you" }`;
1981
+ * docs/phase7-wave7.md §3.19, §4.1 Q12 = A) the blank is on the card, so whichever face shows is blank and changing
1982
+ * form restores nothing: no triggered, resource or constant ability and no keyword, on either face. Traits stay with
1983
+ * no special case (RRG 1.8 "Traits", p. 45: "not considered to be part of a card's printed text box for the purpose
1984
+ * of card abilities"), as do the stat line, hand size and hit points, which are printed outside the text box; a
1985
+ * star stat the text defines reads its printed 0 (RRG 1.8 "Star Icon", pp. 40-41). Changing form is a game rule and
1986
+ * still allowed. What an ability did before the blank stays done, and one already initiated finishes (RRG 1.8
1987
+ * "Initiating Abilities", pp. 24-25). `blank-text-box-identity.test.ts`.
1988
+ */
1989
+ | {
1990
+ readonly kind: "blankTextBox";
1991
+ readonly target: TargetQuery;
1992
+ readonly while?: Predicate;
1993
+ /**
1994
+ * "Treat your mass form upgrade's text box as if it were blank, except for keywords." (Corrupted Programming,
1995
+ * `vision` 26028): the card keeps its printed keywords (its form keyword, so the mass form still counts as
1996
+ * one) while losing every ability. docs/phase7-wave4.md §3.28.
1997
+ */
1998
+ readonly exceptKeywords?: true;
1999
+ }
2000
+ /**
2001
+ * "This card's printed text box cannot be treated as if it were blank." (SP//dr Suit 1B and SP//dr, `spdr` 31001b /
2002
+ * 31002b; docs/phase7-wave5.md §3.31.) Neither a lasting `blankTextBox` effect (Panic in the Streets, Vivian) nor a
2003
+ * constant `blankTextBox` rule (Tech Theft) blanks the card, so its abilities and printed keywords stay live. Always
2004
+ * its own card, and unconditional as printed: no `target`, no `while`.
2005
+ *
2006
+ * Read from the card's current face *before* any blank is applied (`select.ts` `textBoxCannotBeBlanked`), since the
2007
+ * rule sits in the very text box it protects. Only the face that prints it is protected: a card flipped to a face
2008
+ * without the line can be blanked by an effect that is still lasting. Not the permanent keyword's own blank
2009
+ * protection (RRG 1.8 "Permanent", p. 32), which exempts effects from the card's own set and is not modeled yet.
2010
+ */
2011
+ | {
2012
+ readonly kind: "textBoxCannotBeBlanked";
2013
+ }
2014
+ /**
2015
+ * "Forced Interrupt: When an acceleration token would be placed on another scheme, place it here instead." (The
2016
+ * Master of Time 2B, 11008b; docs/phase7-wave2.md §10.3.) A constant redirect read at the moment the token is
2017
+ * placed, the same shape `schemeThreatDestination` uses for a scheme activation's threat — not an interruptible
2018
+ * event, so the placement stays synchronous and the encounter-deck reset that places most tokens (RRG 1.8
2019
+ * "Acceleration Token", p. 5) keeps its exact current ordering.
2020
+ *
2021
+ * `to` is where tokens go instead; a token already headed there is left alone, so "another scheme" cannot loop.
2022
+ * Only a main scheme stage can hold one in this model (`MainSchemeState.accelerationTokens`); a redirect to
2023
+ * anything else does nothing.
2024
+ */
2025
+ | {
2026
+ readonly kind: "accelerationTokenDestination";
2027
+ readonly to: TargetRef;
2028
+ readonly while?: Predicate;
2029
+ }
2030
+ /**
2031
+ * "This card cannot leave play while [villain] is in play." RRG 1.8 "'Cannot'" (p. 11): absolute, like the permanent keyword.
2032
+ *
2033
+ * `by: "cardAbilities"`: "Card abilities cannot remove this ally from play." (docs/phase7-wave7.md §3.10, §4.1 Q7.)
2034
+ * Narrower: only a move or a "defeat" resolved from a card's ability, or paid as its cost, does nothing to the card
2035
+ * (a discard, a return to hand or deck, a removal from the game, a move under another card or into the victory
2036
+ * display, a swap with a card out of play). The game's own rules still remove it: RRG 1.8 "Ally" (p. 7) tells "a card
2037
+ * ability or game effect" apart, and reaching zero hit points is "Defeat" (p. 15), whatever dealt the damage, as are
2038
+ * the ally limit's discard ("Ally Limit", p. 7), a host leaving play and player elimination (p. 34). A change of
2039
+ * control is not leaving play ("Leaves Play", p. 27: an in-play area to an out-of-play one; "Ownership and
2040
+ * Control", p. 31: the character "is moved to its new controller's play area"), so it is not stopped.
2041
+ *
2042
+ * `by: "discard"`: "[This card] cannot be discarded." (docs/phase7-wave8.md §3.35.) Narrower the other way: only a
2043
+ * discard does nothing to the card, whoever or whatever would make it. A player's card, an encounter card ("discard
2044
+ * an upgrade or support you control") and the game's own discards (a limit's "choose and discard", a host leaving
2045
+ * play, RRG 1.8 "Attach To", p. 8) all leave it in play, logged as `leavePlayBlocked`; it is no valid target for a
2046
+ * discard (RRG 1.8 "Target", p. 42) and it cannot pay a discard cost ("Cost", p. 13: paid in full or not at all).
2047
+ * A discard is a move to a discard pile (RRG 1.8 "Discard", p. 16). Every other way out of play still works: removal
2048
+ * from the game, a return to hand or deck, a move to the victory display, a swap. A flip is not leaving play at all
2049
+ * ("Flip", p. 20). A defeat is not read by this form: no card with hit points or threat prints it, and RRG 1.8
2050
+ * "Defeat" (p. 15) discards a defeated card as a consequence of the defeat, which "cannot be discarded" does not
2051
+ * prevent.
2052
+ */
2053
+ | {
2054
+ readonly kind: "cannotLeavePlay";
2055
+ readonly target: TargetQuery;
2056
+ readonly while?: Predicate;
2057
+ readonly by?: "cardAbilities" | "discard";
2058
+ }
2059
+ /**
2060
+ * "You cannot flip your [name] upgrades." (docs/phase7-wave7.md §3.64.) RRG 1.8 "'Cannot'" (p. 11): absolute. A
2061
+ * card in play matching `target` (read with the rule card's speaker as "you", `speakerOf`) is not turned to its
2062
+ * other face:
2063
+ *
2064
+ * - **by an effect** (`EffectSpec flipCard`, every kind of card it flips): that card stays as it is, logged as
2065
+ * `flipBlocked`, and the rest of the effect resolves;
2066
+ * - **as a cost** (`AbilityCost.flipSelf`): the cost cannot be paid, so the ability cannot be initiated (RRG 1.8
2067
+ * "Cost", p. 13);
2068
+ * - **as a target**: it is no valid target for a flip (RRG 1.8 "Target", p. 42), so a choice does not offer it, an
2069
+ * optional "you may flip" choice with no other candidate is not asked, and a player ability that only flips
2070
+ * cards that cannot flip is not offered (`resolve/target-validity.ts`).
2071
+ *
2072
+ * A "flip" here is a card in play turning to its other face. A change of form is not read by this rule: an
2073
+ * identity's (`changeForm`, stopped by `cannotChangeForm`), an additional form's and a villain's by-name form change
2074
+ * (`changeAdditionalForm`, `changeVillainForm`).
2075
+ */
2076
+ | {
2077
+ readonly kind: "cannotFlip";
2078
+ readonly target: TargetQuery;
2079
+ readonly while?: Predicate;
2080
+ }
2081
+ /**
2082
+ * "Collector cannot be defeated." / "Hela cannot be defeated." (their ∞ back faces, `gmw` 16080b/16081b, `mts`
2083
+ * 21136b/21137b); "Citizen V cannot be defeated unless there are at least 1[per_hero] Thunderbolt minions in the
2084
+ * victory display" (`aos` 50129, a `while`). RRG 1.8 "'Cannot'" (p. 11) makes it absolute: a matching character at zero
2085
+ * remaining hit points is not defeated, and its pending defeat does not apply. It stops defeat only; damage is still
2086
+ * dealt and taken. docs/phase7-wave3.md §3.1.
2087
+ */
2088
+ | {
2089
+ readonly kind: "cannotBeDefeated";
2090
+ readonly target: TargetQuery;
2091
+ readonly while?: Predicate;
2092
+ }
2093
+ /**
2094
+ * "Ronan the Accuser cannot be stunned." (Kree Fanatic, `ron` 90001). The stalwart keyword is the same rule for
2095
+ * stunned and confused (RRG 1.8 "Stalwart", p. 40: "This character cannot have confused or stunned status cards"), so a
2096
+ * matching character is never given one, and one it already holds is removed the moment the rule applies (the
2097
+ * stalwart entry's "If a character gains the stalwart keyword while they have a stunned and/or confused status card,
2098
+ * each [...] is removed"). docs/phase7-wave3.md §3.7.
2099
+ */
2100
+ /**
2101
+ * "The first [Technique] attachment revealed each round gains surge." (Nebula I–III, `gmw` 16088–16090); "The first
2102
+ * treachery the engaged player reveals each villain phase gains surge." (Mister Knife, `stld` 17026). Read once, **as
2103
+ * the card is revealed** (the reveal's faceup step), so only a rule already in play applies: FAQ "Mister Knife (#26)"
2104
+ * (RRG 1.8 p. 62): "Mister Knife was not in play when Shadow of the Past was revealed, so his ability does not cause
2105
+ * Shadow of the Past to gain surge." The revealed card must match `cards` and be the first card matching it revealed
2106
+ * this `each` period (`GameState.revealedThisRound`) — by a player `revealer` names, when given, which is resolved with
2107
+ * "you" as the rule's speaker (the engaged player, for an engaged minion). docs/phase7-wave3.md §3.8.
2108
+ */
2109
+ /**
2110
+ * "Reduce the amount of damage Nebula takes from each attack by 1." (Wide Stance, `gmw` 16098); "Reduce the amount of
2111
+ * damage attached character takes from each attack by 1." (Kree Combat Armor, 16131). A constant on the damage a
2112
+ * matching character **takes** (`fromAttack`: only an attack's). Excess damage and overkill are measured on the
2113
+ * reduced amount (RRG 1.8 "Overkill", p. 31, superseding ruling Jan 26, 2026 (3); `resolve/event.ts`
2114
+ * `excessDamageOf`). Constants resolve before a tough status (RRG 1.8 FAQ p. 58: "A hero can keep their tough
2115
+ * status card if … A constant effect reduces the damage the hero takes to zero"). docs/phase7-wave3.md §3.15.
2116
+ *
2117
+ * `amount` may be a value read live, from the rule's card, each time damage is taken: "Reduce the amount of damage
2118
+ * Echo takes from each enemy attack by your hero's DEF." (Echo, `jj` 61038; docs/phase7-wave11-hero-packs.md). A
2119
+ * value below 0 reduces nothing. A consequential-scoped rule whose card leaves play keeps the amount it read then
2120
+ * (`lingeringConsequentialRules`).
2121
+ */
2122
+ | {
2123
+ readonly kind: "reduceDamageTaken";
2124
+ readonly target: TargetQuery;
2125
+ readonly amount: number | ValueSpec;
2126
+ readonly fromAttack?: boolean;
2127
+ /**
2128
+ * "… unless the attacker has the [TINY] trait." (docs/phase7-wave7.md §3.30): no reduction for an attack's
2129
+ * damage whose attacking character matches (`DamageAttackInfo`). Damage with no attacker is reduced as usual,
2130
+ * so pair it with `fromAttack` for "from each attack".
2131
+ */
2132
+ readonly exceptAttacker?: TargetQuery;
2133
+ /**
2134
+ * "… unless the attacker or attack has the [AERIAL] trait, or the attack has ranged." (docs/phase7-wave9.md
2135
+ * §3.25): no reduction either when the card whose ability makes the attack matches (`exceptAttackCard`) or the
2136
+ * attack has the keyword (`exceptAttackKeyword`), read exactly as `cannotTakeDamage`'s fields of the same names
2137
+ * (`attackMeetsException`). Any one exception given that holds lifts the reduction.
2138
+ */
2139
+ readonly exceptAttackCard?: TargetQuery;
2140
+ readonly exceptAttackKeyword?: AttackKeyword;
2141
+ /**
2142
+ * The positive filters, the mirror of the exceptions: the reduction applies only to an attack's damage whose
2143
+ * attacking character matches `onlyAttacker`, and with `onlyUndefended`, only to an enemy attack nobody defends
2144
+ * when its damage is dealt (`DamageAttackInfo.undefended`: the attack's `undefended` result, RRG 1.8 "Attack
2145
+ * (Enemy Activation)" step 2, "Undefended", p. 46). Damage with no attacker is never reduced by either.
2146
+ *
2147
+ * Agile X, a custom-content keyword defined by its reminder text, "reduce damage taken from undefended villain
2148
+ * and villainous attacks by X" (docs/custom-content-packs.md §6; the DSL's `agile`), is `fromAttack`,
2149
+ * `onlyUndefended` and `onlyAttacker: anyOf(villain, withKeyword villainous)`. A player's attack is never
2150
+ * undefended, so `onlyUndefended` reaches enemy attacks only.
2151
+ */
2152
+ readonly onlyAttacker?: TargetQuery;
2153
+ readonly onlyUndefended?: boolean;
2154
+ /** Only an ally's consequential damage: "Cannonball takes -1 consequential damage after …" (§3.31). */
2155
+ readonly consequential?: ConsequentialDamageScope;
2156
+ readonly while?: Predicate;
2157
+ }
2158
+ /**
2159
+ * "While there are no other [Symbiote] environments in play, this card is considered a [Symbiote] environment."
2160
+ * (Festering Mass, `sm` 27124, a side scheme; docs/phase7-wave5.md §3.9). Each card in play matching `target` also
2161
+ * counts as each of `categories` and has each of `traits` — for `TargetQuery` category and trait matching only (a
2162
+ * "[symbiote] environment" query), never for where the card lives or how it behaves (it stays a side scheme).
2163
+ *
2164
+ * `while` is read with printed characteristics only (no constant grants, this rule included), so "no other
2165
+ * [Symbiote] environments" never asks itself. RRG 1.8 has no rule for a modifier whose condition depends on its own
2166
+ * result; this is the `traitsOf` / `blankTextBox` reading (docs/phase7-wave2.md §17.5).
2167
+ */
2168
+ | {
2169
+ readonly kind: "countsAs";
2170
+ readonly target: TargetQuery;
2171
+ readonly categories: readonly TargetCategory[];
2172
+ readonly traits?: readonly Trait[];
2173
+ readonly while?: Predicate;
2174
+ }
2175
+ /**
2176
+ * "As an additional cost to thwart this scheme, take 2 indirect damage" (Cat in a Tree, `spiderham`); "… you must spend
2177
+ * a [energy] resource" (Giant Monster Attack, `spdr`; docs/phase7-wave5.md §3.21). Every thwart of a scheme `scheme`
2178
+ * matches asks the thwarting player, before it resolves, to spend `resources` (which they may decline; the thwart is
2179
+ * then cancelled) and then to take `indirectDamage`. Several rules add up. §4.1 Q18: a player who cannot pay it
2180
+ * cannot choose the scheme as a thwart's target (`thwartCostPayable`, `thwart-cost.ts`); declining at resolution
2181
+ * still cancels the thwart, the fallback when what they could pay with is gone by then.
2182
+ */
2183
+ | {
2184
+ readonly kind: "additionalThwartCost";
2185
+ readonly scheme: TargetQuery;
2186
+ readonly resources?: ResourceRequirement;
2187
+ readonly indirectDamage?: number;
2188
+ readonly while?: Predicate;
2189
+ }
2190
+ /**
2191
+ * "As an additional cost for a player to attack, thwart, or defend with an ally, that player must spend 1 resource of
2192
+ * any type." (Divided Loyalties, `aos` 50173; docs/phase7-wave9.md §3.31.) A cost a rule adds to other characters'
2193
+ * basic powers: each basic attack, basic thwart or defense (`powers`) made with a character `character` matches asks
2194
+ * the player making it for `resources` on top of the power's own costs. Several rules add up, and they add to a
2195
+ * power's own additional cost (`basicPowerCosts`).
2196
+ *
2197
+ * RRG 1.8 "Cost" (p. 13): "A player must pay all additional costs simultaneously with the cost that is being added
2198
+ * to … if they cannot pay for all of the costs at once, then they do not pay any of the costs and the effect
2199
+ * associated with the costs does not occur." So the resources are paid with the exhaust, never apart from it:
2200
+ * - **Basic attack and thwart**, the player's own or one a card instructs (`EffectSpec basicPowerBy`): the command
2201
+ * carries the payment and is refused unpaid, the character unexhausted (`additionalPowerCostFor`,
2202
+ * `actions.ts payBasicPowerCost`). `legalActions` offers the power only with a payment that works.
2203
+ * - **Defense**, at the Declare Defender step: a character whose controller cannot pay is not offered as a defender;
2204
+ * declaring one asks its controller for the payment (`ChoicePrompt spendResources`), and a controller who does not
2205
+ * pay has not declared it: the character stays ready and the step is asked again without it.
2206
+ *
2207
+ * - **A defender a card effect declares** (`EffectSpec declareDefender`; docs/phase7-wave9.md §4.1 Q48 = B): the
2208
+ * character's controller is asked for the payment as the effect resolves, and unpaid the character is not
2209
+ * declared the defender and is not exhausted by that instruction. A character already defending the attack is not
2210
+ * charged again.
2211
+ *
2212
+ * The payer is the player the power is made by: the character's controller.
2213
+ *
2214
+ * **Not reached: an "(attack)" or "(thwart)" ability of the character's own** (§4.1 Q53 = B, which revises Q48 for
2215
+ * labeled abilities). RRG 1.8 "Labeled Ability" (p. 26): "A triggered ability with a label counts as its player's
2216
+ * identity performing that action", so a labeled ability printed on or gained by an ally is an attack or thwart the
2217
+ * identity makes, not one made "with" the ally, and costs nothing extra.
2218
+ */
2219
+ | {
2220
+ readonly kind: "additionalPowerCost";
2221
+ readonly character: TargetQuery;
2222
+ readonly powers: readonly ("attack" | "thwart" | "defend")[];
2223
+ /** A number is that many resources of any type. */
2224
+ readonly resources: number | ResourceRequirement;
2225
+ readonly while?: Predicate;
2226
+ }
2227
+ /**
2228
+ * "As an additional cost to attack [an enemy], you must discard 1 card from your hand."
2229
+ * (docs/phase7-wave10-hero-packs.md H3.16.) A cost a rule adds to every attack a player makes against an enemy
2230
+ * `target` matches (read from the rule's card): a basic attack by a hero or an ally, an `attack` effect, and an
2231
+ * "(attack)"-labeled ability alike. `cost` is paid by the attacking character's controller, with the rule's card as
2232
+ * its source, as the attack is made against that enemy; an enemy that player cannot pay for cannot be attacked by
2233
+ * their characters. Damage that is not an attack owes nothing. Several rules on one enemy are each paid. The rules,
2234
+ * the timing and what is not charged are in `attack-cost.ts`.
2235
+ *
2236
+ * `cost`: parts `planCost` checks and `payCost` pays at once, without resources (a discard from hand; the payer
2237
+ * picks which cards when there is a choice). `@mc/cards`' validator refuses the others.
2238
+ *
2239
+ * Scoped by the enemy attacked, where `additionalPowerCost` is scoped by the character using a basic power and
2240
+ * `basicPowerCosts` by the character whose own power it is; all three add up on one basic attack.
2241
+ */
2242
+ | {
2243
+ readonly kind: "additionalAttackCost";
2244
+ readonly target: TargetQuery;
2245
+ readonly cost: AbilityCost;
2246
+ readonly while?: Predicate;
2247
+ }
2248
+ /**
2249
+ * "Treat the printed resource of each card in your hand as if it were [energy]." (Haywire, `ironheart` 29038;
2250
+ * docs/phase7-wave5.md §3.20): every printed resource icon of each card in the hand of each player `player` names
2251
+ * (read from the rule's speaker, the identity it is attached to) counts as one `as` resource, wild included — for
2252
+ * paying and for every printed-resource reader (`printedResourcesOf`). A card outside that hand is unchanged.
2253
+ */
2254
+ | {
2255
+ readonly kind: "printedResourceAs";
2256
+ readonly player: PlayerRef;
2257
+ readonly as: TypedResource;
2258
+ }
2259
+ /**
2260
+ * "When counting resources on cards discarded from the top of your deck, count each printed [wild] icon twice."
2261
+ * (docs/phase7-wave7.md §3.56): each printed `resource` icon of a card an ability discarded from the deck of a
2262
+ * player `player` names (read from the rule's speaker) counts `times` times when that ability counts its icons, by
2263
+ * the `<bind>.<type>` totals of a `moveCards` and by `ValueSpec totalPrintedResources` (`countedResourcesOf`). Any
2264
+ * effect or cost that discards from that deck (owner decision, §4.1 Q31 = A); a card a response took away is no
2265
+ * longer among the cards counted (§4.1 Q32 = B).
2266
+ *
2267
+ * The icon keeps its type: MC40 p. 21, "each [wild] discarded this way is treated as two [wild] icons", so a count
2268
+ * by type reads two wilds, and nothing makes them another type (RRG 1.8 "Wild Resource", p. 48: "When resources are
2269
+ * not being generated for a cost, a wild resource does not have any characteristic other than 'wild resource'").
2270
+ * It is a count, not a change of the card: paying with the card, a type test on it (`TargetQuery.printedResource`,
2271
+ * `ValueSpec resourceTypes`) and a count of cards that did not come from that deck read the printed icons.
2272
+ */
2273
+ | {
2274
+ readonly kind: "deckDiscardIconCount";
2275
+ readonly player: PlayerRef;
2276
+ readonly resource: ResourceType;
2277
+ readonly times: number;
2278
+ }
2279
+ /**
2280
+ * "Armadillo can have any number of tough status cards." (`nova` 28029; docs/phase7-wave5.md §3.19): RRG 1.8 "Status
2281
+ * Cards" (p. 41) allows one of each; a matching character may hold any number of `status`. Each tough card still
2282
+ * prevents one damage event and is discarded alone (RRG 1.8 "Tough"); piercing discards them all. A number is a
2283
+ * total: "Colossus can have 1 additional tough status card." (`mut_gen` 32001a; docs/phase7-wave6.md §3.7) is `2`.
2284
+ * With several matching rules the largest wins; `cannotHaveStatus` still wins over all of them.
2285
+ */
2286
+ | {
2287
+ readonly kind: "statusLimit";
2288
+ readonly target: TargetQuery;
2289
+ readonly status: "tough";
2290
+ readonly max: "unlimited" | number;
2291
+ }
2292
+ /**
2293
+ * "Increase all damage Venom takes by 1." (Bell Tower's Ringing side, `sm` 27076b; docs/phase7-wave5.md §3.8): the
2294
+ * mirror of `reduceDamageTaken`, once per damage event (§4 Q7). Summed with the reductions before the result is
2295
+ * floored at zero and before any cap (RRG 1.8 "Modifiers", p. 29: additive and subtractive modifiers are applied
2296
+ * simultaneously, and a value below zero is treated as zero). A damage event of 0 is not increased: nothing is taken.
2297
+ */
2298
+ | {
2299
+ readonly kind: "increaseDamageTaken";
2300
+ readonly target: TargetQuery;
2301
+ readonly amount: number;
2302
+ readonly fromAttack?: boolean;
2303
+ /**
2304
+ * Only damage whose source card matches (§4 Q39, `damageSourceCard`): "Troll takes 1 additional damage from each
2305
+ * card with a printed [mental] resource" (39044; docs/phase7-wave6.md §3.68), once per damage event (§4 Q7).
2306
+ */
2307
+ readonly fromSource?: TargetQuery;
2308
+ /** Only an ally's consequential damage: "Dust takes +1 consequential damage after this attack" (§3.31). */
2309
+ readonly consequential?: ConsequentialDamageScope;
2310
+ readonly while?: Predicate;
2311
+ }
2312
+ /**
2313
+ * "Double the amount of damage this minion takes from cards with a printed [energy] resource" (Dragon, 39042);
2314
+ * "Attacks with piercing deal double damage to Vampire" (Vampire, 39051; docs/phase7-wave6.md §3.68). RRG 1.8
2315
+ * "Modifiers" (p. 29): every additive and subtractive modifier is calculated before doubling, so the damage is doubled
2316
+ * after every increase and reduction (an interrupt's, already in the event's amount, and every constant's), and before
2317
+ * `maxDamageTakenPerAttack` and the sustained/per-phase caps (§3.3, §3.4). A damage event of 0 stays 0. Logged as
2318
+ * `damageDoubled`.
2319
+ *
2320
+ * `fromSource`: only damage whose source card matches (§4 Q39, `damageSourceCard`). `attackKeyword`: only an attack's
2321
+ * damage to the character it attacks, when the attack has that keyword (its attacker's, or granted to the attack;
2322
+ * `attackKeywordsOf`). Several matching rules each double (×2 per rule): no card pairs two yet, and the RRG does not
2323
+ * say otherwise.
2324
+ */
2325
+ | {
2326
+ readonly kind: "doubleDamageTaken";
2327
+ readonly target: TargetQuery;
2328
+ readonly fromSource?: TargetQuery;
2329
+ readonly attackKeyword?: AttackKeyword;
2330
+ readonly while?: Predicate;
2331
+ }
2332
+ /**
2333
+ * "Nebula cannot take more than 5 damage from a single attack." (Cutthroat Ambition, `gmw` 16094). Applied after every
2334
+ * `reduceDamageTaken`, as the last bound on what one attack's damage event makes the character take; the lowest cap
2335
+ * wins. docs/phase7-wave3.md §3.15.
2336
+ *
2337
+ * `per: "phase"`: "Nimrod cannot take more than 3 damage each phase." (`mut_gen` 32166; docs/phase7-wave6.md §3.4).
2338
+ * Every damage event counts, attack or not, against `CardInstance.damageTakenThisPhase` (damage taken only: prevented,
2339
+ * reduced, tough-absorbed and capped damage do not count, §4.1 Q9), and what would go past `amount` is held back the
2340
+ * way `maxSustainedDamage` holds it: neither taken nor prevented, logged as `damageCapped`, no tough card used, no
2341
+ * excess (RRG 1.8 "Overkill", p. 31). Damage *placed* is not damage taken (RRG 1.8 "Damage", p. 14: a character takes
2342
+ * damage when damage is dealt to it; `placeDamage` likewise ignores "cannot take damage"), so it neither counts nor is
2343
+ * held. Absent `per` is `"attack"`.
2344
+ */
2345
+ | {
2346
+ readonly kind: "maxDamageTakenPerAttack";
2347
+ readonly target: TargetQuery;
2348
+ readonly amount: number;
2349
+ readonly per?: "attack" | "phase";
2350
+ readonly while?: Predicate;
2351
+ }
2352
+ /**
2353
+ * "Magneto cannot have more than 6[per_hero] sustained damage." (Boarding Party, Sabotage Master Mold, Orbital Decay;
2354
+ * docs/phase7-wave6.md §3.3). Sustained damage is maximum minus remaining hit points (RRG 1.8 "Sustained Damage",
2355
+ * p. 42), which for every character is its `damage`. Read where damage is taken, after every reduction, increase and
2356
+ * per-attack cap and before a tough status card: the damage taken is lowered to what keeps sustained damage at most
2357
+ * `amount` (read live from the rule's card); with several rules the lowest wins. Damage placed (not dealt) is held to
2358
+ * it too. Damage above the cap is neither taken nor prevented (§4.1 Q9): it announces no `damagePrevented` and uses
2359
+ * no tough card, and it yields no excess damage (measured on damage taken, RRG 1.8 "Overkill", p. 31). It never heals and never changes maximum hit
2360
+ * points, but a character found above it between frames is lowered to it (`damageAboveCapRemoved`, a rules
2361
+ * correction rather than a heal; ruling October 10, 2025; RRG 1.8 "Constant Abilities", p. 5). `counterLimit` keeps
2362
+ * counters already over its limit instead: "cannot have more than N sustained damage" describes the card's state,
2363
+ * which the ruling enforces at once, while "Max N counters here" limits what is placed.
2364
+ */
2365
+ | {
2366
+ readonly kind: "maxSustainedDamage";
2367
+ readonly target: TargetQuery;
2368
+ readonly amount: ValueSpec;
2369
+ readonly while?: Predicate;
2370
+ }
2371
+ /**
2372
+ * "[star] Starshark's attacks deal indirect damage." (Menagerie Medley, `gmw` 16137). RRG 1.8 "Indirect Damage" (p. 24):
2373
+ * "If an enemy's attack deals indirect damage, the indirect damage is dealt during step four of the enemy activation
2374
+ * (after player's have the opportunity to defend against the attack). Only the defending character, or the attacked
2375
+ * player's identity if the attack was undefended, is considered to have been attacked, even if other characters were
2376
+ * assigned some or all of the indirect damage." docs/phase7-wave3.md §3.16.
2377
+ */
2378
+ | {
2379
+ readonly kind: "attacksDealIndirectDamage";
2380
+ readonly attacker: TargetQuery;
2381
+ readonly while?: Predicate;
2382
+ }
2383
+ /**
2384
+ * "[star] Divide damage from Bombshell's attack among each character the attacked player controls as evenly as
2385
+ * possible." (Iron Spider's Sinister Syndicate, `spdr` 31031). Step 5 of a matching enemy's attack (RRG 1.8 "Attack
2386
+ * (Enemy Activation)", p. 9) is replaced: step 4's damage (after a hero defender's DEF) is divided among the target
2387
+ * player's identity and the allies they control, `EffectSpec divideDamageEvenly`. The golden rule (RRG 1.8 p. 4)
2388
+ * puts the card over step 5's "all damage … is dealt to the ally", so an ally defender takes one share, not all.
2389
+ * Only the defender, or the target character if undefended, is attacked, as with `attacksDealIndirectDamage`.
2390
+ */
2391
+ | {
2392
+ readonly kind: "attacksDividedEvenly";
2393
+ readonly attacker: TargetQuery;
2394
+ readonly while?: Predicate;
2395
+ }
2396
+ /**
2397
+ * "Each enemy in play gains 1 acceleration icon" (Secret Lair, `hood` 24061; Coordinated Effort, `sm` 27143; Mad
2398
+ * Science, `aos` 50085; Bora, `spdr` 30031; Mojo in the Middle, `mojo` 39060), "this card gains a hazard icon" (Rule by
2399
+ * Force, `sm` 29029): each card in play matching `target` counts as printing `count` more `icon`s (RRG 1.8
2400
+ * "Acceleration Icon", p. 5: "the number of acceleration icons in play"). docs/phase7-wave4.md §3.57.
2401
+ *
2402
+ * `loses: true` is the opposite: "While there is no threat here, this scheme loses the [amplify] icon" (Consume the
2403
+ * World, 34030; docs/phase7-wave6.md §3.38). A matching card shows none of `icon`, printed or gained, and `count` is
2404
+ * ignored. Losing beats gaining: a lost characteristic "cannot be regained while the ability causing it to be lost is
2405
+ * in effect" (RRG 1.8 "'Loses'", p. 27), the same order `KeywordGrantSpec.loses` keeps (§3.13).
2406
+ */
2407
+ | {
2408
+ readonly kind: "gainsIcon";
2409
+ readonly icon: CardIcon;
2410
+ readonly target: TargetQuery;
2411
+ readonly count?: number;
2412
+ readonly loses?: true;
2413
+ readonly while?: Predicate;
2414
+ }
2415
+ /**
2416
+ * "Hero Interrupt: When your hero's attack deals any amount of excess damage, increase that amount by 1." (Follow
2417
+ * Through, Aggression, `gmw` 16045). Each matching rule adds `amount` to the excess damage an attack by a matching
2418
+ * `attacker` deals — the excess reported to "for each point of excess damage" (Into the Fray) and "after you deal
2419
+ * excess damage" (Rocket Raccoon), and the overkill damage that spills on. Modeled as a constant, not an optional
2420
+ * interrupt: see docs/phase7-wave3.md §3.18 and §4 Q10.
2421
+ *
2422
+ * It applies to each measure of the attack's excess that is above 0 (owner answer 42B, 2026-10-12): the excess of
2423
+ * the damage taken (`excessDealt`, what overkill spills) and the excess of the damage dealt (`excessAsDealt`), each
2424
+ * on its own. With only the damage dealt in excess, only that number goes up and nothing spills (`excessAsDealtOf`).
2425
+ */
2426
+ | {
2427
+ readonly kind: "excessDamageBonus";
2428
+ readonly attacker: TargetQuery;
2429
+ readonly amount: number;
2430
+ readonly while?: Predicate;
2431
+ } | {
2432
+ readonly kind: "firstRevealGainsSurge";
2433
+ readonly cards: TargetQuery;
2434
+ readonly each: "round" | "phase";
2435
+ readonly revealer?: PlayerRef;
2436
+ readonly while?: Predicate;
2437
+ }
2438
+ /**
2439
+ * "The first player controls the Milano." (`gmw` 16142): a matching card in play is always under the first player's
2440
+ * control, in their play area, and moves there when the first player token passes (RRG 1.8 "First Player", p. 19) or a
2441
+ * first player is eliminated. A continuous rule, applied between frames (docs/phase7-wave3.md §3.13).
2442
+ */
2443
+ | {
2444
+ readonly kind: "controlledByFirstPlayer";
2445
+ readonly target: TargetQuery;
2446
+ readonly while?: Predicate;
2447
+ }
2448
+ /**
2449
+ * "While White Queen is engaged with you, you are confused." (`mut_gen` 32056); "While Telepathic Restraint is
2450
+ * attached to your identity, you are stunned." (32059). A continuous rule, applied between frames (docs/phase7-
2451
+ * wave6.md §3.9): each matching character in play holding fewer `status` cards than it may (`statusCapacity`: steady
2452
+ * two, stalwart or `cannotHaveStatus` none) is given real status cards up to that, logged `statusGiven` with
2453
+ * `reason: "constant"`. `target` is matched from the rule's speaker (`speakerOf`: an engaged minion's player, an
2454
+ * attachment's host's controller), so `controlledBy: { kind: "controller" }` is "you".
2455
+ *
2456
+ * RRG 1.8 FAQ "White Queen (#56)" (p. 63): "she continuously places confused status cards on the engaged player's
2457
+ * identity until that identity cannot have any more"; a thwart attempt removes them "but will immediately be given
2458
+ * more"; "When White Queen leaves play, any confused status cards remain" — so nothing is taken back when the rule
2459
+ * stops applying (leaving play or disengaging alike).
2460
+ */
2461
+ | {
2462
+ readonly kind: "keepsGivingStatus";
2463
+ readonly target: TargetQuery;
2464
+ readonly status: StatusName;
2465
+ readonly while?: Predicate;
2466
+ }
2467
+ /**
2468
+ * "The Power Stone cannot be unattached from Ronan the Accuser." (Superior Tactics, `gmw` 16113): an effect that would
2469
+ * attach a matching attachment to another card does nothing to it while this applies (RRG 1.8 "'Cannot'", p. 11).
2470
+ * docs/phase7-wave3.md §3.19.
2471
+ */
2472
+ | {
2473
+ readonly kind: "cannotBeUnattached";
2474
+ readonly target: TargetQuery;
2475
+ readonly while?: Predicate;
2476
+ }
2477
+ /**
2478
+ * "Upgrades cannot be removed from [this card]." (community pack `yondu-dh`, Sav'rkk): while this applies, no effect may
2479
+ * take a matching card off the host it is attached to: not attach it to another card (as `cannotBeUnattached`), not
2480
+ * return it to a hand, discard it or otherwise move it out of play (read with `cannotLeavePlay`). It does not stop the
2481
+ * card going with its host when the host leaves play (RRG 1.8 "Attach To", p. 8: that is the game's rule, and a
2482
+ * constant ability stops applying as its card leaves play), nor any move the host's own leaving makes. `target`
2483
+ * names the attached cards (`query("upgrade", { host: self })`).
2484
+ */
2485
+ | {
2486
+ readonly kind: "cannotLeaveHost";
2487
+ readonly target: TargetQuery;
2488
+ readonly while?: Predicate;
2489
+ }
2490
+ /**
2491
+ * "Treat the next card you spend as if it has double the resources." (community pack `yondu-dh`, Jackpot!): granted as
2492
+ * a lasting rule (`applyRuleUntil`), its "you" the granting ability's controller. The first card from hand that player
2493
+ * spends in a later payment generates double (every type, after its own multipliers), and the grant ends as
2494
+ * `consumed` with that payment (`spentCardDoubled`). Read from lasting grants only (`doubleNextSpentGrants`): printed
2495
+ * in a constant ability's `rules` it does nothing.
2496
+ */
2497
+ | {
2498
+ readonly kind: "doubleNextCardSpent";
2499
+ }
2500
+ /**
2501
+ * "Forced Interrupt: When a card (player or encounter) would be placed into a discard pile from play, put it faceup into
2502
+ * The Collection instead." (Collector I–III, Infiltrate the Museum, `gmw` 16070–16072). A matching card leaving play for
2503
+ * a discard pile goes, faceup, to the scenario area `area` instead (`leavePlay`), and `discardRedirected` is announced
2504
+ * for what follows. MC16 FAQ p. 21: only a card *in play* placed *into a discard pile* — not one set aside, removed
2505
+ * from the game, shuffled into a deck, returned to hand, or discarded from an out-of-play area. RRG 1.8 FAQ "Rocket
2506
+ * Raccoon (#29A)" (p. 61): the discard was still attempted, so a cost to discard it is paid. docs/phase7-wave3.md §3.14.
2507
+ *
2508
+ * `thenPlaceThreat`: Collector III's own printed ability is one Forced Interrupt box ("…instead, then place 1 threat
2509
+ * on the main scheme"), and every villain stage's abilities are only the ones printed on that stage's own face (RRG
2510
+ * 1.8 "Villain Defeat", p. 47) — so the redirect and its follow-up have to be one `AbilityDefinition` (one ability id,
2511
+ * `16072.collector-forced-interrupt`), not the redirect plus a second card's own response to `discardRedirected` (the
2512
+ * engine's own `scenario-area.test.ts` uses two cards only to exercise the event generically). `leavePlay` places this
2513
+ * many threat on the redirecting rule's own game area's main scheme, through the ordinary interruptible `placeThreat`
2514
+ * event, immediately after announcing the redirect — so a "prevent threat from being placed" effect still applies.
2515
+ */
2516
+ | {
2517
+ readonly kind: "discardFromPlayDestination";
2518
+ readonly cards: TargetQuery;
2519
+ readonly area: string;
2520
+ readonly thenPlaceThreat?: number;
2521
+ readonly while?: Predicate;
2522
+ }
2523
+ /**
2524
+ * "When a card is set aside from a player's deck, put it facedown into Damnation instead." (Gateway to Corruption /
2525
+ * Hell, community pack `mephisto-nep` 03a): a card an effect sets aside (`CardDestination "setAside"`, the owner's
2526
+ * set-aside area) while it is in one of `from` of any player (default `["deck"]`) goes to the scenario out-of-play
2527
+ * area `area` instead, facedown with `facedown` (faceup otherwise), and keeps its owner. Logged as
2528
+ * `setAsideRedirected`. A card set aside from play, or from a zone `from` does not name, is set aside as normal. The
2529
+ * set-aside counterpart of `discardFromPlayDestination`: a replacement read as the card moves, so no window opens.
2530
+ * The first matching rule wins (no printed card pairs two).
2531
+ */
2532
+ | {
2533
+ readonly kind: "setAsideDestination";
2534
+ readonly area: string;
2535
+ readonly facedown?: true;
2536
+ readonly from?: readonly ("deck" | "hand" | "discard")[];
2537
+ readonly while?: Predicate;
2538
+ }
2539
+ /**
2540
+ * "Double the THW value of your identity." (Prideful Ambitions, community pack `mephisto-nep` 08): each matching
2541
+ * character's `stat` is multiplied by `factor` (2 for "double"; 0.5 for "halve"). RRG 1.8 "Modifiers" (p. 29): "all
2542
+ * additive and subtractive modifiers are calculated before doubling and/or halving modifiers", and "fractional values
2543
+ * are rounded up after all modifiers have been applied", so the factor applies to the base (or "has a base … of"
2544
+ * value) plus every additive modifier, the result is rounded up, then floored at 0. Several rules multiply together.
2545
+ * A dash stays an unmodifiable 0 (p. 15). Read live like every modifier (`characterProfile`), and through
2546
+ * `applyRuleUntil` for a lasting "double … until …". An alter-ego's missing ATK/THW/DEF is not doubled (it has none).
2547
+ */
2548
+ | {
2549
+ readonly kind: "multiplyStat";
2550
+ readonly stat: StatName | "hp";
2551
+ readonly factor: number;
2552
+ readonly target: TargetQuery;
2553
+ readonly while?: Predicate;
2554
+ }
2555
+ /**
2556
+ * "Your identity cannot take damage less than its DEF from each attack." (Slothful Endurance, community pack
2557
+ * `mephisto-nep` 10): a floor on the damage a matching character takes from one attack's damage event, the mirror of
2558
+ * `maxDamageTakenPerAttack`. `amount` is read live in the rule's context with the damaged character bound to
2559
+ * `affected` (`theAffectedCard`), so "its DEF" is `statOf({ kind: "slot", slot: "affected" }, "def")`.
2560
+ *
2561
+ * Applied after every increase, reduction and doubling, so the floor is the DEF (or other amount) as it stands with
2562
+ * every modifier, and only to damage "from each attack" (`fromAttack`): a treachery's or indirect damage that is no
2563
+ * attack's has none. An alter-ego has no DEF, so a floor of its DEF is 0.
2564
+ *
2565
+ * Prevention (rules-expert verdict, tier 1, from RRG 1.8 "Cannot", p. 11, and "Prevent", p. 35; no FFG ruling on
2566
+ * damage floors): any positive damage taken from an attack is raised to the floor, also after a partial prevention,
2567
+ * since "cannot" beats the prevent effect. A "prevent N of that damage" interrupt (`EffectSpec preventDamage`) and a
2568
+ * "prevent N damage from this attack" budget (`modifyAttack.preventDamage`) both prevent only down to the floor (and
2569
+ * log only what they prevented). Damage defended to 0 (RRG 1.8 "Attack (Enemy Activation)" step 4, p. 8; General FAQ,
2570
+ * p. 57), prevented in full, or replaced by a tough status card (p. 44) is not taken and is not raised.
2571
+ *
2572
+ * Engine interpretations (authority step 5), not stated by the RRG: a damage event of 0 is not raised (as
2573
+ * `increaseDamageTaken` leaves 0 alone; RRG 1.8 "Damage", p. 14, does not say so of floors), and the floor is applied
2574
+ * before the per-attack cap, so a "cannot take more than" cap keeps the last word where the two conflict (RRG 1.8
2575
+ * "Cannot", p. 11, makes both absolute and does not order them; no printed card pairs them). Re-read at take time with
2576
+ * the cap, over what an interrupt changed since.
2577
+ */
2578
+ | {
2579
+ readonly kind: "minDamageTakenPerAttack";
2580
+ readonly target: TargetQuery;
2581
+ readonly amount: number | ValueSpec;
2582
+ readonly while?: Predicate;
2583
+ }
2584
+ /**
2585
+ * "Each resource you generate is considered a wild ([wild]) resource instead of its current resource." (Unquenchable
2586
+ * Envy, community pack `mephisto-nep` 11): every resource `player` generates (a hand card's, a resource ability's,
2587
+ * after every "double"/"additional" multiplier) is that many wild resources. Only generation changes: a card's printed
2588
+ * resource icons, read outside a payment ("discard a card with a [mental] resource"), are untouched (RRG 1.8 "Wild
2589
+ * Resource", p. 48; "Resources", p. 37). The player generating is the one paying with the source (a hand card's owner,
2590
+ * a resource ability's spender).
2591
+ */
2592
+ | {
2593
+ readonly kind: "resourcesGeneratedAsWild";
2594
+ readonly player: PlayerRef;
2595
+ readonly while?: Predicate;
2596
+ }
2597
+ /**
2598
+ * "You can control 1 additional upgrade that has the restricted keyword." (Venom / Flash Thompson, `vnm` 20001a/b);
2599
+ * "You can control 1 additional [Weapon] upgrade that has the restricted keyword." (Side Holster, 20021). RRG 1.8
2600
+ * "Restricted" (p. 38) fixes the limit at two; each rule raises it by `amount` for `player` (absent: the rule's speaker,
2601
+ * the card's controller). With `cards`, the extra room holds only matching cards. docs/phase7-wave3.md §3.22.
2602
+ */
2603
+ | {
2604
+ readonly kind: "restrictedLimit";
2605
+ readonly amount: number;
2606
+ readonly cards?: TargetQuery;
2607
+ readonly player?: PlayerRef;
2608
+ readonly while?: Predicate;
2609
+ }
2610
+ /**
2611
+ * "Ronan the Accuser cannot be stunned." (`ron` 90001; docs/phase7-wave3.md §3.7): no new status card of these types
2612
+ * is placed on a matching character (`statusCapacity` is 0 for it); one already held stays (FFG ruling Feb 15, 2024,
2613
+ * #145).
2614
+ *
2615
+ * `from`: "Minions cannot ... stun him" (The Punisher community scenario): only a status card that a card matching
2616
+ * `from` gives is refused, the giver being the card whose ability places it (`StatusGiver.sourceInstanceId`). A status
2617
+ * card with no giving card, or from any other card, is placed as usual. RRG 1.8 "'Cannot'" (p. 11): the effect is
2618
+ * stopped, not the ability that tries it, so "after Shocker is attacked, stun the attacking character" still triggers
2619
+ * and gives nothing.
2620
+ */
2621
+ | {
2622
+ readonly kind: "cannotHaveStatus";
2623
+ readonly target: TargetQuery;
2624
+ readonly statuses: readonly ("stunned" | "confused" | "tough")[];
2625
+ readonly from?: TargetQuery;
2626
+ readonly while?: Predicate;
2627
+ }
2628
+ /**
2629
+ * The Wrecking Crew insert, "Signature Side Schemes": "These side schemes are not discarded when they have no threat on
2630
+ * them." A scenario rule overriding RRG 1.8 "Defeat" (p. 15) under the Golden Rules (p. 4), carried by the main scheme.
2631
+ */
2632
+ | {
2633
+ readonly kind: "notDefeatedWithoutThreat";
2634
+ readonly target: TargetQuery;
2635
+ readonly while?: Predicate;
2636
+ }
2637
+ /**
2638
+ * "While a [MISSION] side scheme is in play, when a player plays an ally, they must choose: either play that ally
2639
+ * into their game area per the normal rules of the game, or play it into the mission area." (MC45 p. 5;
2640
+ * docs/phase7-wave8.md §3.34.) While the rule is in effect and the in-play scenario area `area` exists, a player who
2641
+ * plays a card matching `cards` may name the area as the play's destination (`playCard.into`; `legalActions` lists
2642
+ * it as `LegalAction.destinations`). A choice between two legal plays, not a forced move: without `into` the card is
2643
+ * played as always. Its cost, play restrictions, "max per", the unique rule and `cannotPlay` are checked as for any
2644
+ * play (RRG 1.8 "Play, Put into Play", p. 32), before the destination matters, and it is a play: "after you play an
2645
+ * ally" answers it. Only a play has the choice, whoever makes it: a card an effect plays is asked about as it
2646
+ * resolves (`EffectSpec playFromHand`; owner decision, 2026-10-08, §4.1 row 60), and a card an effect puts into play
2647
+ * goes to its player's area with no question (RRG 1.8 p. 32: "A card that is put into play enters play in its
2648
+ * controller's play area").
2649
+ *
2650
+ * There the card is in play under no player's control (`placeInScenarioPlayArea`): the ally limit counts allies a
2651
+ * player controls (RRG 1.8 "Ally Limit", p. 7), and no player can exhaust it or attack, thwart or defend with it.
2652
+ *
2653
+ * `cards` may name any player card type that stays in play when played (RRG 1.8 "Player Turn", p. 34: "an ally,
2654
+ * upgrade, support, or player side scheme card"). The `playCard` command places each as its type enters play: an
2655
+ * ally or a support loose in the area; a player side scheme there in place of "next to the main scheme" (p. 34),
2656
+ * with its starting threat and counted by the player side scheme limit; an upgrade with "attach to" text on a host
2657
+ * in the area that its text allows, which the command must name (RRG 1.8 "Attach To", p. 8: "as it enters play";
2658
+ * `LegalAction.destinationHosts`); an upgrade without that text loose in the area, attached to nothing ("Upgrade",
2659
+ * p. 46). An event is refused: it "is not in play" while it is played and then goes to its owner's discard pile
2660
+ * ("Event", p. 18), so it has no area to be in. An effect's play (`EffectSpec playFromHand`) offers the area for
2661
+ * allies and supports only.
2662
+ *
2663
+ * `attachments`: "Players may attach upgrades to allies in the mission area." A player upgrade matching it may take a
2664
+ * card in the area as its host when its own "attach to" text allows that card: the host choice reaches into the
2665
+ * area (`attachmentReachOf`), however the upgrade enters play. The upgrade is then in the area with its host, under
2666
+ * no player's control. Whether its abilities do anything there is the closed area's question, not this rule's
2667
+ * (`AbilityDefinition.reaches`, §4.1 Q19 = B).
2668
+ */
2669
+ | {
2670
+ readonly kind: "playDestination";
2671
+ readonly cards: TargetQuery;
2672
+ readonly area: string;
2673
+ readonly attachments?: TargetQuery;
2674
+ readonly while?: Predicate;
2675
+ }
2676
+ /**
2677
+ * "The unique rule does not apply to Avengers Tower." (Avengers Tower, Stronghold side, `mts` 21100a): while this is in
2678
+ * play, a card titled `title` entering play is never refused by the unique rule (RRG 1.8 "Unique Icon", pp. 45–46).
2679
+ * MC21 p. 11: "This constant ability allows each player to play the Avengers Tower support card and use its ability
2680
+ * while the Avengers Tower environment card Stronghold side is in play." By printed title, since the entering card is
2681
+ * not in play yet. docs/phase7-wave4.md §3.5.
2682
+ */
2683
+ | {
2684
+ readonly kind: "uniqueRuleExempt";
2685
+ readonly title: string;
2686
+ readonly while?: Predicate;
2687
+ }
2688
+ /**
2689
+ * Focused Defense (Tower Defense, `mts` 21101), attached to one of the two main schemes: "The villain who matches the
2690
+ * attached scheme is the active villain." With it, the same scheme is the one MC21 names by the attachment: "If a
2691
+ * constant effect on a player card refers to 'the main scheme,' that card always refers to the scheme card with the
2692
+ * attachment 'Focused Defense' attached to it" (MC21 p. 10), and "When a minion schemes, that threat is placed on the
2693
+ * main scheme with the attachment 'Focused Defense' attached to it" (errata, RRG 1.8 p. 67). `scheme` names that main
2694
+ * scheme (`host`, on the attachment). Applied between frames: the villain whose title the scheme's `villainOf` names is
2695
+ * made active (`activeVillainChanged { reason: "focusedScheme" }`). docs/phase7-wave4.md §3.2.
2696
+ */
2697
+ | {
2698
+ readonly kind: "focusedMainScheme";
2699
+ readonly scheme: TargetRef;
2700
+ readonly while?: Predicate;
2701
+ /**
2702
+ * `focused`: encounter cards' "the main scheme" is the focused scheme alone, and so are the acceleration tokens
2703
+ * placed "on the main scheme" (by any card, and by the empty encounter deck), the villain's scheme threat, and the
2704
+ * main scheme the crisis icon and patrol protect. Venom Goblin's glider counter, MC27 p. 17: "When threat would be
2705
+ * placed on 'the main scheme' by an enemy activation, card ability, or acceleration icon, place it on the scheme
2706
+ * with the glider counter. Additionally, when an acceleration token would be placed on 'the main scheme,' place it
2707
+ * on the scheme with the glider counter. Any encounter card that refers to 'the main scheme' without a qualifier
2708
+ * refers to the main scheme with the glider counter."; FAQ (RRG 1.8 p. 62; MC27 p. 21) on player acceleration
2709
+ * tokens, patrol and crisis. Absent: Tower Defense's reading (an encounter card's "the main scheme" is every one).
2710
+ * docs/phase7-wave5.md §3.3.
2711
+ */
2712
+ readonly encounterCards?: "focused";
2713
+ }
2714
+ /**
2715
+ * "Odin cannot have cards attached" / "Odin cannot have encounter cards attached" (Odin, `mts` 21139a/b; with Odin
2716
+ * attached to the main scheme, ruling Aug 3, 2026 (4) #1: "Odin cannot have attachments while attached to the main
2717
+ * scheme"); "Robert Kelly … cannot have upgrades attached" (Find the Senator, `mut_gen` 32065a). A matching card is no
2718
+ * legal host for an attachment or upgrade from `from` (absent: any card; `"encounter"`: an encounter card; `"upgrade"`:
2719
+ * a player upgrade; `"playerCard"`: any card a player owns, "He … cannot have player cards attached", Robert Kelly
2720
+ * 32066), and an `attach` effect leaves such a card where it was. docs/phase7-wave4.md §3.8.
2721
+ */
2722
+ /**
2723
+ * "Treacheries cannot be canceled." (Dark Scepter, `tt` 55036, in play); "In expert mode, this card gains incite 1 and
2724
+ * cannot be canceled." (Frequent Flyers and its three siblings, `sm` 27108–27110, 27112, read from the revealed card
2725
+ * itself: `cards: { self: true }` with a mode `while`). A matching card being revealed cannot have its effects or its
2726
+ * "When Revealed" effects canceled. docs/phase7-wave4.md §3.14.
2727
+ */
2728
+ | {
2729
+ readonly kind: "cannotBeCanceled";
2730
+ readonly cards: TargetQuery;
2731
+ readonly while?: Predicate;
2732
+ }
2733
+ /**
2734
+ * On an attachment: "Treat attached ally as an [Undead] minion with a blank text box. Attached minion's SCH is equal
2735
+ * to its printed THW and it does not take consequential damage." (Fallen Warrior, Beguiled, `mts` 21153, 21178;
2736
+ * 'Pool-ized, `deadpool` 44041; "Lost" Child, `jubilee` 47027; Possessed, `storm` 36038; Manipulated Mind, `sm`
2737
+ * 27171 and Malice, `next_evol` 40199, "(except for traits)" → `keepPrintedTraits`). Read as the attachment arrives
2738
+ * on or leaves an ally (`CardInstance.treatedAs`); a minion takes no consequential damage by definition, so that
2739
+ * clause needs nothing. docs/phase7-wave4.md §3.9.
2740
+ *
2741
+ * The card carrying the rule is whatever is attached to the ally: an attachment, or a minion its own When Defeated
2742
+ * attached there (Malice; `isAttachedMinion`, docs/phase7-wave7.md §3.44).
2743
+ *
2744
+ * `schFromThw`: `true` is "Attached minion's SCH is equal to its **printed** THW"; `"current"` is "… equal to its
2745
+ * THW" (Malice), the ally's THW as it stands whenever its SCH is read: its base THW plus every THW modifier that
2746
+ * still applies to the card now that it is a minion (§4.1 Q27). SCH modifiers apply on top of either.
2747
+ */
2748
+ /**
2749
+ * "While in hero form, Nebula ignores the guard keyword, the patrol keyword, and the crisis icon." (Evasive
2750
+ * Maneuvering, `nebu` 22005); "Wasp ignores the guard keyword, patrol keyword, and crisis icon" (`ironheart` 29034);
2751
+ * Shadowcat, ally and Phased form (`mut_gen` 32002, 32030a); "Psylocke ignores the guard and patrol keywords"
2752
+ * (Psionic Training, `psylocke` 41010). A standing exemption a character carries, not one effect's: a matching
2753
+ * character's attacks are not stopped by guard, and its thwarts (basic or "(thwart)", the thwart's own character)
2754
+ * are not stopped by patrol or the crisis icon; a removal whose source is the character itself skips the crisis icon
2755
+ * too. RRG 1.8 "Ignore" (p. 23). docs/phase7-wave4.md §3.24.
2756
+ *
2757
+ * `"retaliate"`: "Attached villain … ignores the retaliate keyword while attacking a non-[AERIAL] character."
2758
+ * (docs/phase7-wave7.md §3.30): a matching character's attacks are not answered by the attacked character's
2759
+ * retaliate, as an attack with ranged is not (RRG 1.8 "Ranged", p. 36; "Retaliate X", p. 38).
2760
+ *
2761
+ * `against`: the rule holds only for an attack against a character matching it. Only retaliate is read with an
2762
+ * attacked character, so a rule with `against` never waives guard, patrol or the crisis icon.
2763
+ */
2764
+ | {
2765
+ readonly kind: "characterIgnores";
2766
+ readonly target: TargetQuery;
2767
+ readonly ignores: readonly ("guard" | "patrol" | "crisis" | "retaliate")[];
2768
+ readonly against?: TargetQuery;
2769
+ readonly while?: Predicate;
2770
+ /**
2771
+ * Only for the character's basic thwarts: "your hero's basic thwarts ignore the crisis icon" (Retinal Display,
2772
+ * `sm` 27186a/b; docs/phase7-wave5.md §3.22). An ability's thwart or attack is not exempted.
2773
+ */
2774
+ readonly basicOnly?: true;
2775
+ }
2776
+ /**
2777
+ * "Your hero's basic thwart power (THW) can only remove threat from the scheme with the most threat." (Retinal
2778
+ * Display, `sm` 27186a/b; docs/phase7-wave5.md §3.22): a basic thwart by a character `character` matches may target
2779
+ * only a scheme `among` names now (read from the rule's card, so "the scheme with the most threat" is a
2780
+ * `superlative` ref; ties leave every tied scheme). Several rules all apply.
2781
+ */
2782
+ | {
2783
+ readonly kind: "basicThwartTargets";
2784
+ readonly character: TargetQuery;
2785
+ readonly among: TargetRef;
2786
+ readonly while?: Predicate;
2787
+ }
2788
+ /**
2789
+ * On an upgrade attached to a minion: "Take control of attached minion and treat it as a [Controlled] ally with a
2790
+ * blank text box. Its THW is equal to its printed SCH and it takes 1 consequential damage after it thwarts or
2791
+ * attacks." (Mind Control, `phoenix` 34009; Redemption, `bp` 51036). The attachment's controller takes control.
2792
+ * `CardInstance.treatedAs` kind `ally`; docs/phase7-wave4.md §3.29.
2793
+ */
2794
+ | {
2795
+ readonly kind: "treatHostAsAlly";
2796
+ readonly traits: readonly Trait[];
2797
+ readonly thwFromSch?: boolean;
2798
+ readonly consequential: number;
2799
+ }
2800
+ /**
2801
+ * On a minion, of itself: "While there is 4 threat here, treat Black Cat as an ally that takes 2 consequential
2802
+ * damage after she attacks or thwarts." (Black Cat, `fne` 60169; docs/phase7-wave11-scenarios.md §S3.8). While
2803
+ * `while` holds (read with the minion as "self"), the minion may be an ally: `EffectSpec takeControl` ("take control
2804
+ * of Black Cat as an ally") makes it one under the effect's controller, as RRG 1.8 "Card Types" (p. 12) has it: "When
2805
+ * a player changes a minion to an ally, that player takes control of that ally." It stays one while `while` holds and
2806
+ * the rule is active; the moment either fails it is a minion again, engaged with the player who controlled it, and
2807
+ * its threat stays (`syncOwnTreatments`). Unlike Karma or Mind Control its text box is not blank: its printed
2808
+ * abilities and keywords stay (MC60 p. 26 FAQ: Black Cat keeps villainous as an ally), and so do its printed traits,
2809
+ * with `traits` added. `thwFromSch`: its THW is its printed SCH; otherwise 0, a minion having no printed THW.
2810
+ *
2811
+ * Engine reading (tier 5, no source answers it): with `while` holding and no player having taken control (threat
2812
+ * reaching 4 by any other way than the card's own action), the card stays a minion. An ally has a controller (RRG 1.8
2813
+ * "Ally", p. 7) and RRG 1.8 p. 12 names the player who made the change as that controller; no player made it.
2814
+ */
2815
+ | {
2816
+ readonly kind: "treatSelfAsAlly";
2817
+ readonly while: Predicate;
2818
+ readonly consequential: number;
2819
+ readonly traits?: readonly Trait[];
2820
+ readonly thwFromSch?: boolean;
2821
+ } | {
2822
+ readonly kind: "treatHostAsMinion";
2823
+ readonly traits: readonly Trait[];
2824
+ readonly keepPrintedTraits?: boolean;
2825
+ /** `"base"`: "SCH is equal to its base THW" (Converted, `fne` 60100), as `RuleSpec treatAsMinion` reads it. */
2826
+ readonly schFromThw?: boolean | "current" | "base";
2827
+ /**
2828
+ * The host keeps its own text box (`TreatedAsMinion.keepsText`): the treatment says nothing of a blank text box.
2829
+ * "Treat attached villain as an Elite minion with 6 printed hit points" (Whisper in the Dark, Shadowland 65040),
2830
+ * on a villain card that is not one of the game's villains (`isLooseVillainCard`): it is a minion with the ATK
2831
+ * and SCH of the stage it shows, that stage's traits, keywords and abilities, and `traits` besides.
2832
+ */
2833
+ readonly keepsText?: true;
2834
+ /** "With 6 printed hit points": its printed hit points, unscaled (`TreatedAsMinion.printedHp`). */
2835
+ readonly printedHp?: number;
2836
+ }
2837
+ /**
2838
+ * On any card, of every ally a query matches: "Treat each ally with threat on it as a [Deceived] minion with a blank
2839
+ * text box. Its SCH is equal to its base THW and it does not take consequential damage." (Baron Zemo, `fne` 60145;
2840
+ * docs/phase7-wave11-scenarios.md §S3.9). `treatHostAsMinion`'s treatment (blank text box, `traits` in place of the
2841
+ * printed ones unless `keepPrintedTraits`, its printed ATK and hit points, no consequential damage, a minion takes
2842
+ * none), given to each ally card in play that `cards` matches, read live with the rule's card as "self": checked
2843
+ * between frames (`treat-as.ts` `syncRuleTreatments`), as a constant ability's effects "are active anytime the
2844
+ * specific condition is met" (RRG 1.8 "Ability", p. 5). The query is read of the card as it would be untreated (an
2845
+ * ally its controller controls), so "an ally with threat on it" stays matched once it is a minion.
2846
+ *
2847
+ * It is an ally again, under the player who controlled it, in their play area and engaged with no one, the moment the
2848
+ * query stops matching it (its threat removed) or the rule stops being active (its card leaves play, or its text box
2849
+ * is blanked); its threat and damage stay. MC60 p. 26 FAQ: when Baron Zemo leaves play "they are allies again, under
2850
+ * their owner's control, and keep the threat"; ruling Dec 17, 2025 (1) #3: nothing enters or leaves play. Becoming a
2851
+ * minion engages no one: "It engages its controller" is the revealing ability's own `engage` (as Beguiled's is).
2852
+ *
2853
+ * Only a card printed as an ally that nothing else treats as another type is changed: an ally an attachment already
2854
+ * treats as a minion is left to that attachment, and a minion treated as an ally (Karma, Black Cat) is left as it is
2855
+ * (engine reading, tier 5: no source says what a minion-turned-ally that the query matches becomes).
2856
+ *
2857
+ * `schFromThw`: `"base"` is its base THW (RRG 1.8 "Base Value", p. 10: "A defined value before modifiers are
2858
+ * applied"), the printed THW unless an active "has a base THW of" ability sets it, with no THW modifier; `true` its
2859
+ * printed THW; `"current"` its THW with its modifiers. SCH modifiers apply on top of each.
2860
+ */
2861
+ | {
2862
+ readonly kind: "treatAsMinion";
2863
+ readonly cards: TargetQuery;
2864
+ readonly traits: readonly Trait[];
2865
+ readonly keepPrintedTraits?: boolean;
2866
+ readonly schFromThw?: boolean | "current" | "base";
2867
+ readonly while?: Predicate;
2868
+ } | {
2869
+ readonly kind: "cannotHaveAttachments";
2870
+ readonly target: TargetQuery;
2871
+ readonly from?: "encounter" | "upgrade" | "playerCard";
2872
+ readonly while?: Predicate;
2873
+ }
2874
+ /**
2875
+ * "If Odin leaves play, the players lose the game." (Odin, Captive side, `mts` 21139a); "If Robert Kelly leaves play …"
2876
+ * (Stalked by Sabretooth, `mut_gen` 32063); "If Hope Summers leaves play …" (`next_evol` 40130). The moment a matching
2877
+ * card leaves play the game ends as a loss. Moving between play areas or being detached is not leaving play.
2878
+ * docs/phase7-wave4.md §3.8.
2879
+ */
2880
+ | {
2881
+ readonly kind: "leavingPlayLoses";
2882
+ readonly target: TargetQuery;
2883
+ readonly while?: Predicate;
2884
+ }
2885
+ /**
2886
+ * Ebony Maw's Spell environments (MC21 p. 6): "When a player reveals a Spell environment, they place that card in front of
2887
+ * them in their play area", and stage 1B "puts that card into play in their play area". A matching environment that is
2888
+ * revealed or put into play goes to that player's play area, controlled by no one, instead of the villain's area. A
2889
+ * scenario rule, carried by the scenario's own cards. docs/phase7-wave4.md §3.16.
2890
+ */
2891
+ | {
2892
+ readonly kind: "entersRevealersPlayArea";
2893
+ readonly cards: TargetQuery;
2894
+ readonly while?: Predicate;
2895
+ }
2896
+ /**
2897
+ * "You cannot choose to discard this card from your hand." (System Shock, `mts` 21185). On a constant with `activeIn:
2898
+ * "hand"`, it keeps the card itself out of every discard its owner chooses from hand (an effect's "discard N cards",
2899
+ * a cost, the end-of-phase discard, the mulligan). A random discard can still take it. docs/phase7-wave4.md §3.13.
2900
+ */
2901
+ | {
2902
+ readonly kind: "cannotChooseToDiscard";
2903
+ }
2904
+ /**
2905
+ * Mystique's treacheries (Infiltration, Shapeshifter Surprise, `mut_gen` 32082-32083; MC32 p. 7): an encounter card
2906
+ * `cards` matches, drawn from a player's deck, stays in that player's hand: the wave 5 §4.1 Q4 fallback
2907
+ * (`dealUnhandledEncounterCard`) neither deals it nor draws a replacement. "Drawing a treachery card from your deck
2908
+ * counts as drawing a card"; it leaves the hand when its player discards it, as any card in hand is discarded, and
2909
+ * goes to the encounter discard pile. Discarded from the deck instead, it is not dealt either and stays in the
2910
+ * encounter discard pile ("When you discard a treachery card from your hand or deck, it is placed in the encounter
2911
+ * discard pile"). Its "After this card enters your hand" ability is an `activeIn: "hand"` response to its own
2912
+ * `cardEntersHand` (`selfIs: "target"`), however it enters. Read from rules in play and the scenario's, and
2913
+ * from the drawn card's own hand-active constant (matched against itself). docs/phase7-wave6.md §3.10, §4.1 Q7.
2914
+ */
2915
+ | {
2916
+ readonly kind: "staysInHand";
2917
+ readonly cards: TargetQuery;
2918
+ readonly while?: Predicate;
2919
+ }
2920
+ /**
2921
+ * "Until the end of the round, you may look at the top card of the encounter deck at any time." (Sector Scan;
2922
+ * docs/phase7-wave5.md §3.28): each player `player` names may read the face of the top card of the encounter deck
2923
+ * (the active villain's, as every "the encounter deck" effect reads it). Changes no game state; read only by
2924
+ * `faceVisible` for that player's own view, so it never shows the card to another player (RRG 1.8 "Look,
2925
+ * Looked-At", p. 27). Carried by `applyRuleUntil`, which freezes `player` to the resolving player.
2926
+ */
2927
+ | {
2928
+ readonly kind: "mayLookAtTopOfEncounterDeck";
2929
+ readonly player: PlayerRef;
2930
+ readonly while?: Predicate;
2931
+ }
2932
+ /**
2933
+ * "Play with the top card of your deck faceup." (docs/phase7-wave8.md §3.48): while the rule is in force the top card
2934
+ * of each player deck `player` names is visible to every player (`faceVisible`, `shownDeckTop`). Which card that is
2935
+ * comes from the deck's order and this rule each time it is asked: nothing is written on the card, whose `faceup`
2936
+ * stays false, so a save, a replay and a reconnect cannot disagree. It is not a look, a reveal or a search (RRG 1.8
2937
+ * "Look, Looked-At", p. 27): nothing triggers, the deck's order does not change (p. 33 "Player Deck") and the card is
2938
+ * still in the deck for every rule. RRG 1.8 FAQ "Magik (#30A)" (p. 64): when the top card leaves, "she turns the new
2939
+ * top card of her deck faceup" at once, so the log's `deckTopShown` / `deckTopHidden` follow every card move
2940
+ * (`announceDeckTops`).
2941
+ *
2942
+ * A constant like any other: off while its `while` is false, on the face that is not up, and under a blank text box
2943
+ * (RRG 1.8 "Text Box", p. 44). Off, the card is facedown again and satisfies no condition that reads it
2944
+ * (`Predicate topOfDeckFaceup`; owner decision §4.1 Q26 = B).
2945
+ */
2946
+ | {
2947
+ readonly kind: "topOfDeckFaceup";
2948
+ readonly deck?: "player";
2949
+ readonly player: PlayerRef;
2950
+ readonly while?: Predicate;
2951
+ }
2952
+ /**
2953
+ * "Play with the top card of the encounter deck faceup." (docs/phase7-wave9.md §3.42): the same rule over the
2954
+ * encounter deck, which is no player's, so it names none. While it is in force the top card of the active villain's
2955
+ * encounter deck (`activeEncounterDeck`: "the encounter deck" is the active villain's) is visible to every player
2956
+ * (`faceVisible`, `shownEncounterTop`), derived from the deck's order and this rule each time it is asked; the
2957
+ * card's own `faceup` stays false. Not a look, a reveal or a search (RRG 1.8 "Look, Looked-At", p. 27): nothing
2958
+ * triggers, the deck's order does not change and the card is still in the deck (RRG 1.8 "Encounter Deck", p. 17).
2959
+ * The log follows it with `encounterTopShown` / `encounterTopHidden` (`announceDeckTops`).
2960
+ *
2961
+ * "During the player phase" is the rule's `while` (`Predicate gameStep { phase: "player" }`), so the card is
2962
+ * facedown again when the villain phase begins; on a hero face it is off in alter-ego form, and under a blank text
2963
+ * box (RRG 1.8 "Text Box", p. 44). A card that leaves the deck while it is showing (dealt facedown, given as a boost
2964
+ * card) is facedown where it lands: what the players remember of it is theirs, and the log's (ruling, March 19,
2965
+ * 2026 – Ruling 5: "facedown but known"). Off, the card satisfies no condition that reads it
2966
+ * (`Predicate topOfDeckFaceup`; wave 8 §4.1 Q26 = B).
2967
+ */
2968
+ | {
2969
+ readonly kind: "topOfDeckFaceup";
2970
+ readonly deck: "encounter";
2971
+ readonly while?: Predicate;
2972
+ }
2973
+ /**
2974
+ * "Attached villain … is considered to have at least 1 hit point." (docs/phase7-wave8.md §3.10, owner decision §4.1
2975
+ * Q6 = A): a floor on what every reader sees as a matching character's remaining hit points. The dial and the damage
2976
+ * on the card are untouched: damage is still dealt and taken, and healing still heals. While the rule is in force
2977
+ *
2978
+ * - `ValueSpec remainingHp`, and so every predicate built on it ("if he has at least 1 hit point", "while another
2979
+ * villain has at least 1 hit point"), reads at least `atLeast` (`consideredRemainingHitPoints`);
2980
+ * - with `atLeast` of 1 or more the character does not have "zero or fewer remaining hit points" (RRG 1.8 "Defeat",
2981
+ * p. 15), so the defeat check does not defeat it. It is watched like a character under "cannot be defeated"
2982
+ * (`GameState.heldAtZero`) and falls the moment the rule ends with the dial still at zero. A defeat by an effect
2983
+ * that says "defeat" does not read the dial and is not stopped.
2984
+ *
2985
+ * Read from the true dial, not through the floor: a host chosen by remaining hit points ("attach to the villain with
2986
+ * the fewest hit points", `SuperlativeHost`), excess damage (RRG 1.8 "Excess Damage", p. 19), the cap on assigned
2987
+ * indirect damage and the dial a preview shows (`CounterSnapshot.remainingHitPoints`, beside which `consideredHp`
2988
+ * reports the floor).
2989
+ *
2990
+ * A rule's own `while` that reads remaining hit points reads the true dial for the character it is deciding about,
2991
+ * so a floor cannot hold itself up.
2992
+ */
2993
+ | {
2994
+ readonly kind: "consideredRemainingHp";
2995
+ readonly target: TargetQuery;
2996
+ readonly atLeast: number;
2997
+ readonly while?: Predicate;
2998
+ }
2999
+ /**
3000
+ * "Attached ally … is considered to have a wild ([wild]) resource icon in addition to its printed resource icon."
3001
+ * (Desperate Measures, `aoa` 45176; docs/phase7-wave8.md §3.42.) A card in play matching `target` has one more
3002
+ * `resource` icon than the face it shows prints, for every reader of the icons of a card **in play**
3003
+ * (`rules.ts` `resourceIconsInPlay`): today the pairing of discarded cards with characters by resource icon
3004
+ * (`EffectSpec pairCards`, §3.36). Each rule in force adds one icon, so two add two.
3005
+ *
3006
+ * It is not a printed icon (RRG 1.8 "Printed", p. 34) and it changes nothing a card pays with: resources are
3007
+ * generated by a card discarded from a hand or by a resource ability (RRG 1.8 "Resource", p. 37), and the card this
3008
+ * rule names is in play.
3009
+ */
3010
+ /**
3011
+ * "Players cannot assign cards with the same resource icon … to more than one ally each mission attempt." (Mister
3012
+ * Sinister, `aoa` 45179a; docs/phase7-wave8.md §3.36.) While in force, every pairing (`EffectSpec pairCards`) whose
3013
+ * characters are the ones in the in-play scenario area `area` (its `with` query names that area) is held to
3014
+ * `limit`: an assignment that breaks it is refused and the choice stays open, so a card the limit forbids is left
3015
+ * unassigned.
3016
+ */
3017
+ | {
3018
+ readonly kind: "pairLimit";
3019
+ readonly area: string;
3020
+ readonly limit: PairLimit;
3021
+ readonly while?: Predicate;
3022
+ } | {
3023
+ readonly kind: "consideredResourceIcon";
3024
+ readonly target: TargetQuery;
3025
+ readonly resource: ResourceType;
3026
+ readonly while?: Predicate;
3027
+ }
3028
+ /**
3029
+ * A card in play reads the resource types that paid for another card: "After you play a THWART event, … remove 1
3030
+ * threat from that scheme for each different resource type used to pay for that event" (Jubilee's Coat 47004, and
3031
+ * her Sunglasses 47005 for an ATTACK event; docs/phase7-wave8.md §3.62). While the rule is in force, a payment its
3032
+ * speaker ("you") makes for a card `cards` matches is one whose wilds the player declares (`declareWildTypes`,
3033
+ * §4.1 Q33 = B), exactly as when the played card itself is marked `AbilityDefinition.readsPaidTypes`. The rule changes
3034
+ * nothing else: the reading is done by the card's own ability (`ValueSpec paidTypeCount` / `Predicate paidType` with
3035
+ * `of`).
3036
+ *
3037
+ * `reads`: what the card reads, for the one shortcut that skips the prompt (`PaidTypesRead`). Default: the count.
3038
+ * A constant like any other: off while its `while` is false, on the face that is not up, and under a blank text box.
3039
+ */
3040
+ | {
3041
+ readonly kind: "readsPaymentTypesOf";
3042
+ readonly cards: TargetQuery;
3043
+ readonly reads?: PaidTypesRead;
3044
+ readonly while?: Predicate;
3045
+ };
3046
+ /** Where a cost may pick a card from (outside play). */
3047
+ export interface CardZoneQuery {
3048
+ /** `separateDeck`: an identity's separate deck, named by `separateDeck` ("the top card of the Invocation deck"). */
3049
+ readonly zone: "discard" | "hand" | "deck" | "separateDeck";
3050
+ /** Whose zone: the paying player's, or any player's. */
3051
+ readonly player: "you" | "any";
3052
+ readonly query?: TargetQuery;
3053
+ /** Which separate deck, with zone `separateDeck`. */
3054
+ readonly separateDeck?: string;
3055
+ /** Only the top N cards of the zone. */
3056
+ readonly top?: number;
3057
+ }
3058
+ /**
3059
+ * A threshold the cards picked for a `discardFromHand` cost must reach *together*: the sum of `measure` over every
3060
+ * pick is at least `atLeast`, and the player chooses which (and how many) matching cards make it up.
3061
+ *
3062
+ * `printedCost` is each card's printed resource cost (RRG 1.8 "Cost", p. 13: "A card's resource cost is the numerical
3063
+ * value that must be paid to play the card"), never the resources it would generate, and never a cost modified by
3064
+ * what it would cost to play right now. A card printed with an X cost counts as 0: X is only defined while that card
3065
+ * is being played (RRG 1.8 "Non-Numerical Variable", p. 30: an undefined X "is equal to 0"), and card data already
3066
+ * stores it as `cost: 0` with `specialCost: "X"`; a card with no printed cost at all (a resource) also adds 0.
3067
+ *
3068
+ * Paid in full or not at all (RRG 1.8 "Cost", p. 13): picks summing below `atLeast` are refused, so a hand whose
3069
+ * matching cards can't reach it can't initiate the ability and `legalActions` never offers it.
3070
+ */
3071
+ export interface DiscardCombined {
3072
+ readonly measure: "printedCost";
3073
+ readonly atLeast: number;
3074
+ }
3075
+ /**
3076
+ * What an ability costs to initiate (RRG "Cost"). Every component is paid at
3077
+ * once when the ability is initiated; if any component can't be paid in full,
3078
+ * the ability can't be initiated. Cards the player picks as part of a cost are
3079
+ * named up front in the command's `costChoices` (keyed by the slot named here)
3080
+ * and are bound into the ability's effects under the same slot.
3081
+ */
3082
+ /**
3083
+ * "Discard up to 3 cards from the top of your deck →" (docs/phase7-wave8.md §3.55): a deck discard cost of a size the
3084
+ * payer chooses (`AbilityCost.discardFromDeck`).
3085
+ *
3086
+ * - **The range.** From `min` to the smaller of `max` and the cards the deck can supply; `min` is at least 1 (RRG 1.8
3087
+ * "Cost", p. 14: "up to" some number "requires a minimum of one"), so zero is never a payment: not paying is not
3088
+ * using the ability. A deck that cannot supply `min` cannot pay (an empty deck with an empty discard pile), and the
3089
+ * ability is not offered.
3090
+ * - **Chosen as the cost is paid**, in a `chooseNumber` choice (a range of one number is not asked), logged as
3091
+ * `numberChosen`; then that many cards are discarded exactly as a fixed deck discard cost discards them, before the
3092
+ * ability's effects (RRG 1.8 "Cost Arrow Icon", p. 14). A deck the cost empties resets at once.
3093
+ * - **The count** of cards discarded is var `cost.discardFromDeck` for the text after the arrow ("where X is the
3094
+ * number of cards discarded this way"); `discardFromDeckSlot` binds the cards themselves as usual.
3095
+ */
3096
+ export interface DeckDiscardChoice {
3097
+ readonly choose: {
3098
+ readonly min: number;
3099
+ readonly max: number;
3100
+ };
3101
+ }
3102
+ /**
3103
+ * "Remove 1 threat from your suit form upgrade →" / "remove up to 3 threat from here →" (docs/phase7-wave9.md §3.7 (b);
3104
+ * `remove-threat-cost.ts`): threat taken off a card in play as a cost.
3105
+ *
3106
+ * - **`from`** names the card, read when the cost is determined with the cost's earlier picks bound; the first card in
3107
+ * play it names. The card is usually not a scheme, its threat only tokens (§3.7 (a)); a scheme pays under its own
3108
+ * rules (a crisis icon or a "threat cannot be removed" rule leaves it unable to pay).
3109
+ * - **`amount`**: a number is removed in full or the cost cannot be paid. `{ choose: { min, max } }` is the payer's
3110
+ * pick, made as the cost is paid in a `chooseNumber` choice from `min` to the smaller of `max` and the threat on
3111
+ * the card (a range of one number is not asked).
3112
+ * - **A printed "up to N" is `min: 1`** (RRG 1.8 "Cost", p. 14: "A cost requiring 'any number' or 'up to' some number
3113
+ * of game elements requires a minimum of one such game element"). The engine honors a `min` of 0 as written (the
3114
+ * cost is then paid by removing none, and no removal is raised); nothing printed asks for it.
3115
+ * - **The amount removed** is var `cost.removeThreat` for the text after the arrow ("for each threat removed this
3116
+ * way"). Less removed than chosen (the removal was cancelled) means the cost was not paid.
3117
+ */
3118
+ export interface RemoveThreatCost {
3119
+ readonly from: TargetRef;
3120
+ readonly amount: number | {
3121
+ readonly choose: {
3122
+ readonly min: number;
3123
+ readonly max: number;
3124
+ };
3125
+ };
3126
+ /**
3127
+ * "Remove 3 threat from **a scheme** … →" (Cosmic Awareness 21039): the payer picks the card, one in play matching
3128
+ * `query` that can pay in full (it holds at least the amount and threat can be removed from it), bound to `slot`
3129
+ * for the effects ("remove 1 additional threat from that scheme") and read as `from` when `from` is that slot.
3130
+ * With none that can pay the cost cannot be paid and the ability is not offered (RRG 1.8 "Cost", p. 13).
3131
+ * `legalActions` offers one variant per candidate; the pick is forced with one candidate.
3132
+ */
3133
+ readonly choose?: {
3134
+ readonly slot: string;
3135
+ readonly query: TargetQuery;
3136
+ };
3137
+ }
3138
+ /** "Take any amount of damage up to … →": the payer's choice of a `damageSelf` cost's amount (`AbilityCost.damageSelf`). */
3139
+ export interface DamageSelfChoice {
3140
+ readonly choose: {
3141
+ readonly min: ValueSpec;
3142
+ readonly max: ValueSpec;
3143
+ };
3144
+ }
3145
+ /**
3146
+ * "Discard the top card of the encounter deck →" (Redwing 53002, Battlefield Awareness 53010) and "Choose a number
3147
+ * from 1 to 5. Discard that many cards from the top of the encounter deck →" (Infiltration 51015): docs/phase7-wave9.md
3148
+ * §3.43 (a), `encounter-discard-cost.ts`.
3149
+ *
3150
+ * - **`amount`** is the number of cards owed: printed, or `{ choose: { min, max } }` for a number the payer chooses,
3151
+ * `min` at least 1 (RRG 1.8 "Cost", p. 14). The choice is made as the cost is paid, in a `chooseNumber` choice
3152
+ * logged as `numberChosen`, unless the command names it (`CostSelection.discardFromEncounterDeck`); a fixed amount
3153
+ * is not asked.
3154
+ * - **Not cut to the deck's size.** RRG 1.8 "Encounter Deck" (p. 17): a discard of a specified number of cards that
3155
+ * empties the encounter deck "is considered to be fulfilled", and is not continued with the new deck. So a player
3156
+ * may choose 5 over a deck of 2: 2 are discarded, the deck is reset at once with its acceleration token, and the
3157
+ * cost is paid. It cannot be paid only with no card to discard (an empty deck and an empty discard pile).
3158
+ * - **`slot`** binds the cards discarded on the frame being paid for, top first, with `<slot>.count` ("for each card
3159
+ * discarded this way"), `<slot>.boostIcons`, `<slot>.starIcons` (a separate count; "icons (★ and boost)" is their
3160
+ * sum) and the resource totals `EffectSpec discardEncounterCards` binds; `<slot>.chosen` is the number chosen. The
3161
+ * cards are read where they are when the effects resolve: in the encounter discard pile, or, after a discard that
3162
+ * emptied the deck, shuffled into the new deck.
3163
+ * - Paid before the ability's effects (RRG 1.8 "Cost Arrow Icon", p. 14), and logged as
3164
+ * `encounterDiscardCostSettled`. The discard is a cost, not an effect of the card.
3165
+ *
3166
+ * Not on a resource ability, whose cost is paid inside another payment and asks nothing.
3167
+ */
3168
+ export interface EncounterDeckDiscardCost {
3169
+ readonly amount: number | {
3170
+ readonly choose: {
3171
+ readonly min: number;
3172
+ readonly max: number;
3173
+ };
3174
+ };
3175
+ readonly slot: string;
3176
+ }
3177
+ /**
3178
+ * "Spend up to 3 resources →" (docs/phase7-wave8.md §3.62): a resource cost whose size the payer chooses, from `min` to
3179
+ * `max` resources of any type.
3180
+ *
3181
+ * - **The payment is the choice.** The size is the number of resources the payment generates beyond anything else the
3182
+ * same payment owes (a played card's own cost), so it is part of the command (`payment`) or of the logged answer to
3183
+ * the pay prompt, and a replay makes the same one. `CostSelection.resources` may name it as well; it must then agree.
3184
+ * - **Overpaying is legal** (owner decision, 2026-10-08, §4.1 row 78, applying RRG 1.8 "Cost", p. 13: "While paying a
3185
+ * cost, a player is permitted to generate resources beyond the specified cost"). A payment that generates fewer than
3186
+ * `min` is refused; one that generates more than `max` pays `max` and overpays the rest; a named size
3187
+ * (`CostSelection.resources`) smaller than the payment overpays the difference. `paid.count` is the size and
3188
+ * `overpaid.*` the rest. A card that generates two resources is two toward the size.
3189
+ * - **At least one.** RRG 1.8 "Cost" (p. 14): "A cost requiring 'any number' or 'up to' some number of game elements
3190
+ * requires a minimum of one such game element", so `min` is at least 1 and spending nothing is not triggering the
3191
+ * ability.
3192
+ * - The size is recorded as var `cost.resources`. The types spent are read as any payment's are (`Predicate paidType`,
3193
+ * `ValueSpec paidTypeCount`, on an ability marked `readsPaidTypes`), over the resources paid, not the overpaid
3194
+ * ones (§4.1 Q34 = A), each wild as its player declared it (§4.1 Q33 = B).
3195
+ *
3196
+ * Not with `resourcesX`, `resourcesEqualTo` or `sameResourceType`.
3197
+ */
3198
+ export interface ResourcesChoice {
3199
+ readonly choose: {
3200
+ readonly min: number;
3201
+ readonly max: number;
3202
+ };
3203
+ }
3204
+ /** Whether a cost's `resources` is a size the payer chooses (`ResourcesChoice`) rather than a fixed requirement. */
3205
+ export declare const isResourcesChoice: (resources: AbilityCost["resources"]) => resources is ResourcesChoice;
3206
+ /** The chosen-size range of a cost's `resources` (`ResourcesChoice`), or null when the cost has a fixed one or none. */
3207
+ export declare const resourcesChoiceOf: (cost: AbilityCost | undefined) => ResourcesChoice["choose"] | null;
3208
+ /** The fixed part of a cost's `resources`: nothing when the payer chooses the size (`ResourcesChoice`). */
3209
+ export declare const fixedResourcesOf: (cost: AbilityCost | undefined) => number | ResourceRequirement | undefined;
3210
+ export interface AbilityCost {
3211
+ /** "Exhaust [this card] →". */
3212
+ readonly exhaustSelf?: boolean;
3213
+ /**
3214
+ * "Flip [this card] →" (docs/phase7-wave7.md §3.64): the ability's own double-sided card (`flipSide`) turns to its
3215
+ * other face as the cost, keeping its state as any same-type flip does (RRG 1.8 "Flip", p. 20), and the flip is
3216
+ * announced (`cardFlipped`) above the frame being paid for. Payable only by a card in play with another face that
3217
+ * no `cannotFlip` rule names (RRG 1.8 "Cost", p. 13: paid in full or not at all). Not for a resource ability, whose
3218
+ * cost is paid in the middle of another payment.
3219
+ */
3220
+ readonly flipSelf?: boolean;
3221
+ /**
3222
+ * "Change to hero form and discard this card →" (Entrapment 61024): the paying player's identity changes to this form
3223
+ * as part of the cost (`change-form-cost.ts`). RRG 1.8 "Cost" (pp. 13–14): paid in full or not at all, so payable
3224
+ * only from the other form and when no `cannotChangeForm` rule stops the change; an additional cost to change form
3225
+ * (`RuleSpec formChangeCost`, Work-Life Balance 61030) is folded into this cost and paid with it. The change is not the
3226
+ * once-per-round change (RRG 1.8 "Form, Change Form", p. 21), and its `formChanged` event goes above the frame paid
3227
+ * for, so "after you change form" responses resolve before the ability's effects. Not on a resource ability: the
3228
+ * change and its event need the frame being paid for, which a resource ability paid mid-payment does not have.
3229
+ */
3230
+ readonly changeForm?: "hero" | "alterEgo";
3231
+ /**
3232
+ * Engine-internal, never scripted: set by `foldChangeFormCost` on the cost it returns, listing the parts the additional
3233
+ * costs to change form added. It marks the cost folded (so it is not folded twice) and keeps those parts the
3234
+ * changing player's own (`delegatesFoldedPart`).
3235
+ */
3236
+ readonly changeFormFolded?: readonly (keyof AbilityCost)[];
3237
+ /**
3238
+ * "Spend a [energy] resource" → `{ energy: 1 }`; "Spend [E][M][P]" → one of each. A number is a generic amount.
3239
+ * `{ choose }` is a number of resources of any type the payer chooses (`ResourcesChoice`).
3240
+ */
3241
+ readonly resources?: number | ResourceRequirement | ResourcesChoice;
3242
+ /**
3243
+ * "Spend X resources of any type, where X is the number of villains under Routed →": a number of resources of any
3244
+ * type the board gives, not the payer. Read when the cost is determined (RRG 1.8 "Initiating Abilities", p. 24, step
3245
+ * 3) with the ability's card as `self` and the payer as `you`, never below 0, added to any fixed `resources`, and
3246
+ * recorded as var `cost.resources`. An X of 0 is nothing to spend, so the rest of the cost alone pays it. Not to be
3247
+ * confused with `resourcesX`, where X is how much the payer chooses to spend.
3248
+ */
3249
+ readonly resourcesEqualTo?: ValueSpec;
3250
+ /**
3251
+ * "Spend X [energy] resources →": X is every resource in the payment usable
3252
+ * as that type (beyond any fixed `resources`), bound to var `bind`.
3253
+ */
3254
+ readonly resourcesX?: {
3255
+ /**
3256
+ * `"any"`: "spend up to 2 resources of any type" (Nebula's Ship, `gmw` 16093): every resource paid beyond the fixed
3257
+ * requirement counts, whatever its type (docs/phase7-wave3.md §3.25).
3258
+ */
3259
+ readonly resource: TypedResource | "any";
3260
+ readonly bind: string;
3261
+ readonly min?: number;
3262
+ /**
3263
+ * "Up to 2": X is at most this. Paying more is still legal — RRG 1.8 "Cost": overpaying is allowed and the excess is
3264
+ * lost — so X is capped rather than the payment refused (docs/phase7-wave3.md §3.25).
3265
+ */
3266
+ readonly max?: number;
3267
+ };
3268
+ /**
3269
+ * "Remove 1 web counter from it →" (`target` absent/`"self"`: the ability's own card). "Remove 1 growth counter
3270
+ * from him [Groot] and exhaust Entangling Vines →" (`gmw` 16008, 16010, 16011) is `target: "identity"`: the
3271
+ * paying player's own identity, wherever the counters actually live — a different card than the one carrying
3272
+ * the ability. docs/phase7-wave3.md's Groot kit is the first printed text needing counters spent off a target
3273
+ * other than the ability's own source.
3274
+ *
3275
+ * A `TargetRef` names any other card: "Remove 1 power counter from Phoenix Force →" (Psionic Bond, `phoenix` 34001a;
3276
+ * docs/phase7-wave6.md §3.85), read with the payer as `you` and the ability's card as `self`. It must name exactly
3277
+ * one card in play, holding enough counters, or the cost cannot be paid (RRG 1.8 "Cost", p. 13: paid in full or not
3278
+ * at all); a ref naming several cards is refused rather than one picked silently. The counters leave by the same
3279
+ * removal as any other (`counterRemoved`, so that card's "after the last counter is removed" responses answer it).
3280
+ */
3281
+ readonly spendCounters?: {
3282
+ readonly counterType: string;
3283
+ /**
3284
+ * How many; with `upTo`, the most that may be removed.
3285
+ *
3286
+ * A `ValueSpec` is a number the board gives (hero-pack spec H3.5; 4K Digital Camcorder 61009: "choose a non-Elite
3287
+ * minion. Remove X evidence counters from Alias Investigations, where X is equal to 2 less than that minion's
3288
+ * remaining hit points →"). It is read when the cost is determined (RRG 1.8 "Initiating Abilities", p. 24, step 3),
3289
+ * after the cost's own picks (`chooseTarget` and the other slots), with them bound, the payer as `you` and the
3290
+ * ability's card as `self`; rounded down and never below 0, so an X of 0 removes nothing and is always payable
3291
+ * while the card is there. The number is the plan's (`CostPlan.cost`), paid as read, and bound to `bind`. Not with
3292
+ * `upTo` or `all`, and not on a `repeatable` resource ability (a use cannot be multiplied by a number not yet read).
3293
+ */
3294
+ readonly amount: number | ValueSpec;
3295
+ readonly target?: "self" | "identity" | TargetRef;
3296
+ /**
3297
+ * "Remove **up to** 4 growth counters from Groot →" ("We Are Groot", `gmw` 16006; docs/phase7-wave3.md §3.32): the
3298
+ * player chooses how many, from 1 to `amount` (and no more than the card holds), in the command's
3299
+ * `costSelection.counters`. RRG 1.8 "Cost" (p. 14): "A cost requiring 'any number' or 'up to' some number of game
3300
+ * elements requires a minimum of one such game element", so 0 is not a payment. With no choice given, the most
3301
+ * that can be removed is.
3302
+ */
3303
+ readonly upTo?: boolean;
3304
+ /**
3305
+ * "Remove **each** [type] counter from [card] →" (Bishop, `gambit` 37011: "When Bishop attacks, remove each energy
3306
+ * counter from him → for each counter discarded this way, …"): every counter of the type on the holder, with no
3307
+ * choice; `amount` is ignored and the number removed is what `bind` reads. Not with `upTo`. It needs at least one
3308
+ * counter: RRG 1.8 "Cost" (p. 14) reads "A cost requiring 'any number' or 'up to' some number of game elements
3309
+ * requires a minimum of one such game element", and "each" is the same variable-quantity cost with the count
3310
+ * fixed by the board, so removing none is not a payment (by analogy; reported as a rules question).
3311
+ */
3312
+ readonly all?: boolean;
3313
+ /** The number of counters removed, bound to this var for the effects ("choose that many friendly characters"). */
3314
+ readonly bind?: string;
3315
+ };
3316
+ /**
3317
+ * "Place 1 charge counter on Gambit →" (Natural Agility, `gambit` 37008; docs/phase7-wave6.md §3.53): `amount`
3318
+ * counters of `counterType` are placed on the ability's own card (`target` absent or `"self"`) or on the paying
3319
+ * player's identity (`"identity"`) as the cost.
3320
+ *
3321
+ * - **Always payable.** Placing a counter needs nothing the player could lack, so this component never stops the
3322
+ * ability being initiated (RRG 1.8 "Cost", p. 13, asks only that a cost be paid in full; nothing here can fall
3323
+ * short).
3324
+ * - **Paid before the effects.** RRG 1.8 "Initiating Abilities" (p. 24): the cost is paid (step 5) before the
3325
+ * effects resolve (step 6), so an effect counting those counters ("for each charge counter on Gambit") counts the
3326
+ * one just placed.
3327
+ * - **Announced.** The placement is a `countersPlaced` event (`paidAsCost`), pushed above the ability's frame when an
3328
+ * ability listens, so "after a counter is placed" responses resolve before the paid-for effects, as a counter
3329
+ * cost's `countersRemoved` does.
3330
+ */
3331
+ readonly placeCounters?: {
3332
+ readonly counterType: string;
3333
+ readonly amount: number;
3334
+ readonly target?: "self" | "identity";
3335
+ };
3336
+ /**
3337
+ * "Discard the top card of your deck →" (Booster Boots, `gmw` 16052; docs/phase7-wave3.md §3.33): that many cards
3338
+ * from the top of the paying player's deck go to their discard pile as the cost.
3339
+ *
3340
+ * - **Payable only if the deck can supply them all.** RRG 1.8 "Cost" (p. 13): a cost is paid in full; RRG 1.8
3341
+ * "Player Deck" (p. 33): "If the player's deck empties while the player was discarding cards from their deck, no
3342
+ * further cards are discarded from the newly shuffled deck", so a deck of fewer cards cannot pay more.
3343
+ * - **An empty deck is not an excuse.** The RRG never leaves a deck empty while the discard pile holds cards: "If
3344
+ * a player deck empties, the player shuffles their discard pile to make a new deck" (p. 33), at once (ruling, Apr
3345
+ * 30, 2026 (3) answer 7: "The deck is reshuffled **before** the currently resolving card enters the discard
3346
+ * pile"), and so does the engine (`settlePlayerDecks`, docs/phase7-wave3.md §4 Q15). An empty deck with cards in
3347
+ * the discard pile only exists in a state built before that (a save, a test's surgery): it is reset first (with
3348
+ * its facedown encounter card) and pays from the new deck. With both deck and
3349
+ * discard pile empty there is nothing to discard, and the ability cannot be initiated.
3350
+ * - **A deck the cost empties resets immediately** (the same ruling), before the ability's effects resolve.
3351
+ * - **A value**: "When you would take any amount of damage from an attack, discard that many cards from the top of
3352
+ * your deck →" (Shield Spell, `mts` 21061) is `{ kind: "eventAmount" }`, read against the event whose window the
3353
+ * ability is being used in (the innermost open window), when the cost is checked and again when it is paid.
3354
+ * docs/phase7-wave4.md §3.42.
3355
+ * - **A number the payer chooses**: "discard up to 3 cards from the top of your deck → … +X ATK …, where X is the
3356
+ * number of cards discarded this way" (docs/phase7-wave8.md §3.55) is `{ choose: { min: 1, max: 3 } }`. See
3357
+ * `DeckDiscardChoice`.
3358
+ */
3359
+ readonly discardFromDeck?: number | ValueSpec | DeckDiscardChoice;
3360
+ /**
3361
+ * "Discard the top 2 cards of your deck (top 3 cards instead if you are in alter-ego form) → add each SP//dr card
3362
+ * discarded this way to your hand" (Aunt May & Uncle Ben, `spdr` 31007): the cards `discardFromDeck` discarded are
3363
+ * bound to this slot of the ability's own frame, so its effects can name them (`cards(chosen(slot), filter)`). They
3364
+ * are only known once the cost is paid (the top of the deck is hidden), so, unlike `discardFromHand`'s picks, they
3365
+ * are added to the frame as the cost is paid rather than planned. A deck the cost empties is reset at once, so the
3366
+ * last discarded card may already be in the new deck by the time the effects read the slot; the slot still names it
3367
+ * (docs/phase7-wave3.md §4 Q18, the Teen Spirit precedent: "that card" names the specific card). Only with
3368
+ * `discardFromDeck`.
3369
+ */
3370
+ readonly discardFromDeckSlot?: string;
3371
+ /**
3372
+ * "Look at the top 2 cards of the encounter deck. Discard 1 of those cards → remove threat from a scheme equal to the
3373
+ * number of boost icons on that card" (Thief Extraordinaire, `gambit` 37001b; docs/phase7-wave6.md §3.54): as the
3374
+ * cost, the paying player looks at the top `look` cards of the active encounter deck and chooses `discard` of them,
3375
+ * which are discarded; the cards discarded are bound to `slot` on the frame being paid for, so the effects can read
3376
+ * them (`boostIcons` of that slot).
3377
+ *
3378
+ * - **Who looks.** Only the paying player (RRG 1.8 "Look, Looked-At", p. 27): the look is a `chooseCards` choice
3379
+ * of theirs offering exactly the looked-at cards, which makes them face-visible for as long as it is open
3380
+ * (`visibility.ts`), logged as `cardsLookedAt`. The cards not discarded never move: they stay on top in their
3381
+ * order (p. 27: "returned to that deck in the same order").
3382
+ * - **From the top of the deck.** RRG 1.8 "Discard" (p. 16): "If a player looks at a number of cards from the top of
3383
+ * a deck and discards one or more of those cards, those cards are considered to have been discarded from the top
3384
+ * of that deck", so a discard that empties the deck resets it at that move (`settlePlayerDecks`, §3.60) and the
3385
+ * discarded card is not in the new deck.
3386
+ * - **Fewer cards than `look`.** Looking does not empty the deck, so a deck of fewer cards shows what it has; an
3387
+ * empty deck is reset first (RRG 1.8 "Encounter Deck", p. 17: "If the encounter deck is empty, the encounter
3388
+ * discard pile is immediately shuffled"). The cost is payable only if the cards looked at can supply all
3389
+ * `discard` (RRG 1.8 "Cost", p. 13: paid in full or not at all), so a deck and discard pile both empty, or a deck
3390
+ * shorter than `discard`, cannot pay it, and `legalActions` does not offer the ability.
3391
+ * - **Paid before the effects.** The look and the discard are a step `payCost` pushes above the frame being paid
3392
+ * for (the indirect-damage cost's pattern), so they resolve before its effects (RRG 1.8 "Initiating Abilities",
3393
+ * p. 24, steps 5–6; "Cost Arrow Icon", p. 14), and a confused hero's labeled thwart still pays them (RRG 1.8
3394
+ * "Labeled Ability", p. 26). Not for a resource ability, which is paid in the middle of another payment.
3395
+ */
3396
+ readonly encounterLookDiscard?: {
3397
+ readonly look: number;
3398
+ readonly discard: number;
3399
+ readonly slot: string;
3400
+ };
3401
+ /**
3402
+ * "Choose to either exhaust your hero or spend 2 resources of any type →" (The Grand Collection 1B, `gmw` 16073b;
3403
+ * docs/phase7-wave3.md §3.36): pay exactly **one** of these costs, the player's choice, together with every other
3404
+ * component of this cost. The command names the branch (`costSelection.branch`, 0-based); with none, the first
3405
+ * branch that can be paid is. The ability can be initiated if any branch can be paid (RRG 1.8 "Choose (Option)",
3406
+ * p. 12: an option whose cost cannot be paid cannot be chosen), and `legalActions` lists the payable branches.
3407
+ * A branch may not itself contain `either`.
3408
+ */
3409
+ readonly either?: readonly AbilityCost[];
3410
+ /**
3411
+ * "Discard the top 2 cards of your deck (the top card instead if you control the Milano) →" (Reactor Core, `gmw`
3412
+ * 16165); "choose and discard 1 card from your hand (discard the top card of your deck instead if you control the
3413
+ * Milano) →" (Navigation Column, 16172). docs/phase7-wave3.md §3.49. A cost component the board picks, not the
3414
+ * player: `then` if `condition` holds, `else` otherwise, paid together with every other component of the cost.
3415
+ *
3416
+ * - **Decided when the cost is determined.** RRG 1.8 "Initiating Abilities" (p. 24), step 3: "Determine the cost (or
3417
+ * costs) … taking modifiers into account". `condition` is read then, from the paying player's point of view (`you`
3418
+ * is the payer, `self` the ability's card), and the branch is recorded as var `cost.condition` (1 for `then`, 0 for
3419
+ * `else`).
3420
+ * - **No fallback.** "Instead" is a replacement (RRG 1.8 "Replacement Effect", p. 37): while the condition holds,
3421
+ * the printed cost is no longer the cost at all. So only the selected branch is checked, and if it cannot be paid
3422
+ * the ability cannot be initiated (p. 24, steps 3 and 5), even when the other branch could be. This is the
3423
+ * difference from `either`, where the player picks among payable branches.
3424
+ * - A branch may contain `either` (a choice inside the board's pick) but not another `conditional`, and must not
3425
+ * repeat a component of the rest of the cost.
3426
+ */
3427
+ readonly conditional?: {
3428
+ readonly condition: Predicate;
3429
+ readonly then: AbilityCost;
3430
+ readonly else: AbilityCost;
3431
+ };
3432
+ /**
3433
+ * "Deal yourself 1 facedown encounter card →" (Star-Lord; Daring Escape; Library Labyrinth; Universal Weapon): the
3434
+ * paying player is dealt that many encounter cards, facedown, as the cost (docs/phase7-wave3.md §3.20).
3435
+ */
3436
+ readonly dealEncounterCards?: number;
3437
+ /**
3438
+ * "Deal a player 1 facedown encounter card →" (Aerial Recon, `falcon` 53009): the payer picks one player still in
3439
+ * the game, themself included, and that player is dealt `count` facedown encounter cards as the cost.
3440
+ *
3441
+ * - **The pick.** Made with the cost, as the picked player's identity card in `costChoices[slot]`; with one player
3442
+ * in the game it is forced and may be omitted. Bound to `slot` for the effects ("that player" is the controller
3443
+ * of the slot's card). Any player can be picked: the player is who the cost is done to, not a card it is paid
3444
+ * with (as `dealDamage.choose`'s target and an attach cost's host). `legalActions` offers one variant per player.
3445
+ * - **Not announced to "would be dealt" interrupts**, as `dealEncounterCards`: every cost is paid at once (RRG 1.8
3446
+ * "Cost", p. 13; `TriggerEvent encounterCardBeingDealt`). The card is dealt and the cost is paid; the deal is
3447
+ * recorded for abilities that answer a card having been dealt (`encounterCardDealt`, source `"ability"`).
3448
+ * - **Actions only.** A response window has no prompt for this pick: with more than one player in the game a
3449
+ * triggered ability with this cost cannot be initiated (`@mc/cards`' validator refuses to define one).
3450
+ */
3451
+ readonly dealEncounterCardsTo?: {
3452
+ readonly count: number;
3453
+ readonly slot: string;
3454
+ };
3455
+ /**
3456
+ * "Take 1 damage →" (Focused Rage): the controller's identity takes the damage. A value is read when the cost is
3457
+ * determined, with the cost's own picks bound: "choose an ATTACK event in your hand, and take damage equal to its
3458
+ * printed cost →" (Wolverine's Claws 35002) is `printedCost` of the `chooseCard` slot (docs/phase7-wave6.md §3.42),
3459
+ * recorded as var `cost.damageSelf`.
3460
+ *
3461
+ * `{ choose: { min, max } }` (docs/phase7-wave7.md §3.79): "Take any amount of damage up to your remaining hit
3462
+ * points →". The payer picks the amount as the cost is paid, in a `chooseNumber` choice, and the pick is recorded as
3463
+ * var `cost.damageSelf` for the text after the arrow ("deal an equal amount of damage"). The bounds are read when
3464
+ * the cost is determined (RRG 1.8 "Initiating Abilities", p. 24, step 3), `min` never below 0.
3465
+ *
3466
+ * - **0 is a legal pick when `min` is 0** (owner decision, docs/phase7-wave7.md §4.1 Q46 = B): no damage is dealt,
3467
+ * the cost is paid and the effects resolve with 0.
3468
+ * - **Only amounts that can all be taken are offered** (RRG 1.8 "Cost", p. 14; FAQ "Focused Rage (#27)", p. 57): the
3469
+ * range stops below the first amount the identity could not take in full, so an identity holding a tough status
3470
+ * card, one that cannot take damage or one a constant reduces damage to is offered 0 alone when `min` is 0, and
3471
+ * otherwise the cost cannot be paid. A range of one number is not asked.
3472
+ * - Damage past the identity's remaining hit points is still taken (`canTakeCostDamage`), so "up to your remaining
3473
+ * hit points" is the card's `max`, not an engine cap.
3474
+ */
3475
+ readonly damageSelf?: number | ValueSpec | DamageSelfChoice;
3476
+ /**
3477
+ * "Discard the top card of the encounter deck →", "choose a number from 1 to 5, discard that many cards from the top
3478
+ * of the encounter deck →" (`EncounterDeckDiscardCost`, docs/phase7-wave9.md §3.43 (a)).
3479
+ */
3480
+ readonly discardFromEncounterDeck?: EncounterDeckDiscardCost;
3481
+ /** "Remove [up to] N threat from [a card] →" (`RemoveThreatCost`, docs/phase7-wave9.md §3.7 (b)). */
3482
+ readonly removeThreat?: RemoveThreatCost;
3483
+ /** "Deal 2 damage to him →" (War Machine): this card takes the damage. */
3484
+ readonly damageThisCard?: number;
3485
+ /**
3486
+ * "Take 3 indirect damage →" (Kinetic Armor, `sm` 27149): the paying player takes that much indirect damage, divided
3487
+ * among the characters they control (RRG 1.8 "Indirect Damage", p. 24), before the ability's effects resolve.
3488
+ *
3489
+ * - **Payable only if it can all be taken.** RRG 1.8 "Cost" (p. 14): "If taking damage is a cost, that cost is not
3490
+ * considered paid unless all of that damage was taken." So the ability is offered only while the payer's
3491
+ * characters can absorb every point: each one's remaining hit points, none that cannot take damage from this
3492
+ * card, and none holding a tough status card, which would prevent what it is assigned (the Focused Rage FAQ entry,
3493
+ * RRG 1.8 p. 57: a cost that tough would prevent "cannot be paid", and "you cannot partially pay a cost"). For the
3494
+ * same reason the assignment itself leaves out a character with a tough status card (`dealIndirectDamage.asCost`).
3495
+ * - **Not all taken, not paid.** Damage prevented as it is taken (a reduction the payability check cannot know of)
3496
+ * means the cost was not paid, so the ability's effects do not resolve (`settleCostDamage`); the damage already
3497
+ * taken stays taken, as in the thwart cost's §4.1 Q30.
3498
+ */
3499
+ readonly indirectDamage?: number;
3500
+ /**
3501
+ * "Give the villain a tough status card … →" (Neocarbon Scales, `sm` 27150): each card `to` names (read with the
3502
+ * payer as `you` and the ability's card as `self`) is given one status card of that type. Payable only if `to` names
3503
+ * at least one card in play and every one of them can hold another (RRG 1.8 "Status Cards", p. 41: "A character
3504
+ * cannot have more than one status card of each type at a time"; `statusCapacity` for steady and the rest), since a
3505
+ * cost is paid in full or not at all (RRG 1.8 "Cost", p. 13).
3506
+ */
3507
+ readonly giveStatus?: {
3508
+ readonly status: StatusName;
3509
+ readonly to: TargetRef;
3510
+ };
3511
+ /**
3512
+ * "Discard a tough status card from your hero →" (Made of Rage, `mut_gen` 32007; Bulletproof Protector, 32009): one
3513
+ * status card of that type is discarded from each card `from` names (read with the payer as `you` and the ability's
3514
+ * card as `self`). Payable only if `from` names at least one card in play and every one of them holds one (RRG 1.8
3515
+ * "Cost", p. 13: paid in full or not at all); a card holding several (Colossus, §3.7) loses one. Each card discarded
3516
+ * is announced as `TriggerEvent statusDiscarded` with cause `cost`, and those responses resolve before the ability's
3517
+ * effects (RRG 1.8 "Cost Arrow Icon", p. 14). docs/phase7-wave6.md §3.6.
3518
+ */
3519
+ readonly discardStatus?: {
3520
+ readonly status: StatusName;
3521
+ readonly from: TargetRef;
3522
+ };
3523
+ /**
3524
+ * "… and 1 facedown boost card →" (Neocarbon Scales, `sm` 27150): each card `to` names is dealt `count` facedown
3525
+ * boost cards from the encounter deck, which wait there until it activates (RRG 1.8 "Boost, Boost Icon", p. 11: "If
3526
+ * an enemy is dealt a boost card outside of its own activation, that boost card remains facedown on that enemy").
3527
+ * Payable only if `to` names at least one card in play and the encounter deck, with its discard pile reshuffled in
3528
+ * when it runs out ("Encounter Deck", p. 17), holds enough cards for all of them.
3529
+ */
3530
+ readonly giveBoostCards?: {
3531
+ readonly count: number;
3532
+ readonly to: TargetRef;
3533
+ };
3534
+ /** "Heal 1 damage from Captain Marvel →": the controller's identity must have that much damage to heal. */
3535
+ readonly healIdentity?: number;
3536
+ /**
3537
+ * "Heal 2 damage from an enemy → confuse that enemy" (docs/phase7-wave10-hero-packs.md H3.17): the payer picks one
3538
+ * character in play matching `query` (read with the payer as "you" and the ability's card as "self") and `amount`
3539
+ * damage is healed from it as the cost. The pick is in `costChoices[slot]` (forced, and so omittable, with one
3540
+ * candidate) and is bound to `slot` for the effects ("that enemy"). See `heal-cost.ts`.
3541
+ *
3542
+ * - **A candidate holds at least `amount` damage and can be healed by this card** (`RuleSpec cannotBeHealed`): a
3543
+ * cost is paid in full or not at all (RRG 1.8 "Cost", p. 14: "A player cannot pay the original cost or any of the
3544
+ * additional costs individually"; `healIdentity` reads its identity the same way).
3545
+ * - **Any character the query names, an enemy included.** RRG 1.8 "Cost" (p. 14) has a player pay "with cards and/or
3546
+ * game elements they control"; a cost whose text names the character it is paid on ("an enemy", "a friendly
3547
+ * character") is paid on that character, as `dealDamage.choose` and an attach cost's host are.
3548
+ * - **What the effect needs of the pick goes in `query`.** RRG 1.8 "Cost" (p. 14): "An ability's cost cannot be paid
3549
+ * if that ability's effect requires one or more targets and there is not at least one valid target", and "Target"
3550
+ * (p. 43): "The cost of an ability or game function is not considered when determining if that ability or game
3551
+ * function can affect a target." So the heal does not make a character a valid pick; the effect must be able to
3552
+ * affect it: "confuse that enemy" is `{ categories: ["enemy"], canTakeStatus: "confused" }`, which leaves out a
3553
+ * stalwart enemy, one that "cannot be confused", and one with no room for another confused status card.
3554
+ * - With no candidate the cost cannot be paid and the ability is not offered (RRG 1.8 "Initiating Abilities", p. 24,
3555
+ * steps 3 and 5). `legalActions` offers one variant per candidate.
3556
+ */
3557
+ readonly healCharacter?: {
3558
+ readonly slot: string;
3559
+ readonly query: TargetQuery;
3560
+ readonly amount: number;
3561
+ };
3562
+ /**
3563
+ * "Exhaust this card and **choose a non-Elite minion**. Remove X evidence counters …, where X is equal to 2 less than
3564
+ * that minion's remaining hit points → discard that minion" (4K Digital Camcorder 61009; hero-pack spec H3.5;
3565
+ * `choose-target-cost.ts`): a choice made as part of the cost, before the arrow, with nothing done to the card. The
3566
+ * rest of the cost and the effects read it as slot `slot`.
3567
+ *
3568
+ * - **Candidates.** Cards in play matching `query`, read with the payer as `you` and the ability's card as `self`.
3569
+ * Any player's card and an enemy alike: it is the target of the ability, not a card the cost is paid with (RRG
3570
+ * 1.8 "Cost", p. 14, names only what the cost spends). Put what the effect needs of it in `query` (RRG 1.8 "Target",
3571
+ * p. 43: the cost does not make a card a valid target; "Cost", p. 14: a cost cannot be paid without one).
3572
+ * - **The pick** is made up front in `costChoices[slot]`, as every cost pick is; with exactly one candidate it is
3573
+ * forced and may be omitted. `legalActions` offers one variant per candidate, and `planCost` refuses any whose
3574
+ * other parts it cannot pay (a counter cost read off it, `spendCounters.amount` as a `ValueSpec`), so a minion with
3575
+ * too many hit points is no variant at all.
3576
+ * - With no candidate the cost cannot be paid and the ability is not offered (RRG 1.8 "Initiating Abilities", p. 24,
3577
+ * steps 3 and 5). Only on an action: a timing window cannot ask for the pick.
3578
+ */
3579
+ readonly chooseTarget?: {
3580
+ readonly slot: string;
3581
+ readonly query: TargetQuery;
3582
+ };
3583
+ /**
3584
+ * "Discard [this card] →" (Cosmic Flight, Tenacity, Energy Channel). The
3585
+ * card's counters are snapshotted into vars `self.counters.<type>` first, so
3586
+ * "for each counter here" still reads them after the discard. Its threat and
3587
+ * damage are snapshotted the same way, into `self.threat` and `self.damage`:
3588
+ * "Exhaust and discard Beat Cop → deal 1 damage to a minion for each threat
3589
+ * here" (leaving play clears both).
3590
+ */
3591
+ readonly discardSelf?: boolean;
3592
+ /**
3593
+ * "Discard 1 card at random from your hand →" (Magic Crowbar, Ball and Chain, Bulldozer's Helmet): this many cards,
3594
+ * picked with the game's seeded RNG as the cost is paid, so a replay picks the same cards. Payable only with at least
3595
+ * that many cards in hand beyond this card and the cards the payment spends (RRG 1.8 "Cost", p. 13: a cost is paid in
3596
+ * full). A hand of exactly that many is discarded whole (ruling, Feb 28, 2026 (4) answer 1). The picked cards aren't
3597
+ * bound: they are only known once the cost is paid.
3598
+ */
3599
+ readonly discardRandomFromHand?: number;
3600
+ /**
3601
+ * "Discard 1 identity-specific card at random from your hand →" (Induced Panic, `sm` 27153): the random pick is
3602
+ * among the hand cards matching this, read from the paying player's point of view (`identitySetOf: you`), and the
3603
+ * cost is payable only with enough matching cards left. Only with `discardRandomFromHand`.
3604
+ */
3605
+ readonly discardRandomFromHandFilter?: TargetQuery;
3606
+ /** "Exhaust your hero →" / "Exhaust your identity →" (encounter-card Hero Actions). */
3607
+ readonly exhaustIdentity?: boolean;
3608
+ /**
3609
+ * "Each player exhausts their identity and takes 1 damage →" (docs/phase7-wave9.md §3.58; `each-player-cost.ts`):
3610
+ * the inner cost is checked and paid for every player still in the game, the payer included, in player order.
3611
+ *
3612
+ * - **One player who cannot pay makes the whole cost unpayable** (RRG 1.8 "Cost", p. 13: paid in full or not at
3613
+ * all): an identity already exhausted, or one that could not take all the damage. The other players' forms are
3614
+ * not asked about; a form the card asks of its user is the trigger's (`form`).
3615
+ * - **`damageSelf` is damage taken as a cost** (RRG 1.8 "Cost", p. 14; FAQ "Focused Rage (#27)", p. 57): a player
3616
+ * holding a tough status card, one that cannot take damage and one a constant would reduce it for cannot pay, as
3617
+ * for the payer's own `damageSelf`; damage an interrupt prevents as it is paid leaves the effects unresolved.
3618
+ * - The payer's identity is paid with here, so `exhaustIdentity` beside it (the same card twice) cannot be paid.
3619
+ *
3620
+ * Only these two components: both are things every player has (an identity), with nothing to pick.
3621
+ */
3622
+ readonly eachPlayer?: {
3623
+ readonly exhaustIdentity?: boolean;
3624
+ readonly damageSelf?: number;
3625
+ };
3626
+ /**
3627
+ * "Choose and discard 1 card from your hand →" (min 1, max 1) / "Choose and
3628
+ * discard up to 5 cards" (min 0, max 5) / "Discard X cards from your hand →" with no printed cap (Shield Toss:
3629
+ * `max` omitted — bounded only by hand size, since a player can never select a card twice or one not in hand).
3630
+ * Picked in `costChoices.discard`; the cards are bound to slot `discard` and their count to var `bind`.
3631
+ *
3632
+ * `filter` narrows *which* hand cards can pay: "Discard a [physical] resource from your hand →" (the Temporal
3633
+ * obligations, `toafk` 11018/11019/11021) is `{ printedResource: "physical" }`; "Discard a hero-specific card from
3634
+ * your hand →" (Depowered 11020) is `{ identitySetOf: you }`. Every pick must match, and a hand holding fewer than
3635
+ * `min` matching cards cannot pay the cost at all, so the ability is never offered (RRG 1.8 "Initiating Abilities",
3636
+ * p. 24, steps 3 and 5; "Cost", p. 13: a cost is paid in full). The effect-side sibling is
3637
+ * `EffectSpec discardFromHand.filter`. docs/phase7-wave2.md §19.
3638
+ *
3639
+ * `combined` adds a threshold over the picked cards together rather than a count: "Discard any number of attack
3640
+ * cards from your hand with a combined resource cost of 3 or more →" (Advanced Glider, `sm` 27136) is `{ min: 1,
3641
+ * filter: { trait: ATTACK }, combined: { measure: "printedCost", atLeast: 3 } }`. See `DiscardCombined`.
3642
+ */
3643
+ readonly discardFromHand?: {
3644
+ readonly min: number;
3645
+ readonly max?: number;
3646
+ readonly bind?: string;
3647
+ readonly filter?: TargetQuery;
3648
+ readonly combined?: DiscardCombined;
3649
+ };
3650
+ /**
3651
+ * "Pay the printed cost of an ally in any player's discard pile →" (Make the
3652
+ * Call): the card picked in `costChoices[slot]` adds its printed cost to the
3653
+ * resource requirement and is bound to `slot`.
3654
+ *
3655
+ * `entersPlay` declares that the ability's effects then bring the picked card
3656
+ * into play. The engine uses it to refuse a pick that could not enter play —
3657
+ * RRG 1.8 "Unique Icon" (a card matching one in play), checked at initiation so
3658
+ * the cost is never paid for nothing (RRG "Target": an ability "can only be
3659
+ * initiated if it has at least one valid target").
3660
+ */
3661
+ readonly payPrintedCostOf?: {
3662
+ readonly slot: string;
3663
+ readonly from: CardZoneQuery;
3664
+ readonly entersPlay?: boolean;
3665
+ };
3666
+ /**
3667
+ * "Choose an ATTACK event in your hand … →" (Wolverine's Claws 35002; docs/phase7-wave6.md §3.42): a card picked in
3668
+ * `costChoices[slot]` and bound to `slot`, with nothing else done to it. It stays where it is; the ability's effects
3669
+ * name it (`playFromHand.card`). Exactly one card, from the paying player's own zone (RRG 1.8 "Cost", p. 13: a cost
3670
+ * not in play is paid from the payer's own out-of-play areas).
3671
+ *
3672
+ * `playableIgnoringCost`: the effects play the card "ignoring its resource cost", so only a card that could be played
3673
+ * that way now is a legal pick (`playIgnoringCostFault`). RRG 1.8 "Cost" (p. 13): "An ability's cost cannot be paid if
3674
+ * that ability's effect requires one or more targets and there is not at least one valid target"; the same reading
3675
+ * `payPrintedCostOf.entersPlay` makes, so the damage and the exhaust are never paid for a card that cannot be played.
3676
+ */
3677
+ readonly chooseCard?: {
3678
+ readonly slot: string;
3679
+ readonly from: CardZoneQuery;
3680
+ readonly playableIgnoringCost?: true;
3681
+ };
3682
+ /** "Spend 2 resources of different types" (Red Dagger): the payment must hold this many types; a wild can be any one. */
3683
+ readonly distinctResourceTypes?: number;
3684
+ /**
3685
+ * "Spend 3 resources of the same type →" (Kree Combat Armor, `gmw` 16131; docs/phase7-wave3.md §3.43): every resource
3686
+ * this cost's `resources` asks for (a generic number) must be of one type, the payer's choice. A wild counts as any
3687
+ * type; a card that generates two types can give one of them and overpay the other (`payableWithOneType`). Checked
3688
+ * wherever the payment is (`resourceVars`), so an action, a window's payment and a play all refuse a mixed payment, and
3689
+ * `legalActions` offers the ability only when the player's resources can pay it.
3690
+ */
3691
+ readonly sameResourceType?: true;
3692
+ /**
3693
+ * "Spend [energy][mental][physical] printed resources →" (We Are One, `sm` 27120): RRG 1.8 "Printed" (p. 35), "Wild
3694
+ * resources cannot be spent as other resource types for such a cost". Each typed slot is paid by a resource of that
3695
+ * type only; a wild never fills it (it still pays a generic or a `wild` slot). Checked wherever the payment is
3696
+ * (`resourceVars`) and when `legalActions` decides whether the ability can be offered.
3697
+ */
3698
+ readonly printedResourcesOnly?: true;
3699
+ /**
3700
+ * "Exhaust Captain America's Shield →" (min 1, max 1) / "Exhaust any number of allies you control →" (min 1, no
3701
+ * max): exhaust cards in play, other than this ability's own card (`exhaustSelf`) or your identity
3702
+ * (`exhaustIdentity`). See `InPlayCostPick` for how the cards are picked and when the cost is payable.
3703
+ *
3704
+ * A list is several picks paid together, each into its own slot: "Exhaust an [Avenger] character and a [Guardian]
3705
+ * character →" (As One!, Problem Solvers; docs/phase7-wave4.md §3.17) is two picks of one card, and one card cannot
3706
+ * pay both (RRG 1.8 "Cost", p. 13).
3707
+ */
3708
+ readonly exhaustCards?: InPlayCostPick | readonly InPlayCostPick[];
3709
+ /**
3710
+ * "Ready your sidekick →" (docs/phase7-wave8.md §3.54): the picked cards in play ready as the cost. See
3711
+ * `InPlayCostPick` for the pick, and `ready-cards-cost.ts` for how it is paid.
3712
+ *
3713
+ * - **Exhausted cards only** (owner decision §4.1 Q29 = A): a cost that changes nothing cannot be paid, so a card
3714
+ * that is already ready is no candidate, as a card already exhausted is none for `exhaustCards`; nor is one that
3715
+ * "cannot ready" (RRG 1.8 "'Cannot'", p. 11). With no candidate the ability is not offered (RRG 1.8 "Initiating
3716
+ * Abilities", p. 24, steps 3 and 5).
3717
+ * - **An additional cost to ready is part of this cost.** RRG 1.8 "Ready" (p. 36) lets a player decline an
3718
+ * additional cost to ready a card, and then "the card does not ready"; a cost is paid in full or not at all
3719
+ * (RRG 1.8 "Cost", p. 13). So the resources a `RuleSpec readyCost` asks of the payer for each picked card are
3720
+ * added to this cost's resource requirement and paid in the same payment, or nothing is paid.
3721
+ * - **Not readied, not paid.** The ready resolves above the ability's frame before its effects ("Cost Arrow Icon",
3722
+ * p. 14), as any ready does: a "would ready" replacement and "after you ready" responses apply. If a picked card
3723
+ * is not ready afterward (a replacement took the ready), the cost is unpaid and the effects do not resolve.
3724
+ */
3725
+ readonly readyCards?: InPlayCostPick;
3726
+ /**
3727
+ * "… return Captain America's Shield from play to your hand →": cards in play go to their owner's hand. See
3728
+ * `InPlayCostPick`.
3729
+ *
3730
+ * A list is several picks paid together, each into its own slot, as for `exhaustCards`: "Choose an [X-Force] ally
3731
+ * and an [X-Men] ally and return them to their owners' hands →" (docs/phase7-wave8.md §3.70) is two picks of one
3732
+ * card, and one card cannot pay both (RRG 1.8 "Cost", p. 13). With either pick short of a candidate the cost cannot
3733
+ * be paid.
3734
+ */
3735
+ readonly returnToHand?: InPlayCostPick | readonly InPlayCostPick[];
3736
+ /**
3737
+ * "Discard an upgrade you control →" (Lethal Weapon, `nebu` 22030); "Discard an ally you control →" (Noble Sacrifice,
3738
+ * `magneto` 49018); "Discard a [Tech] upgrade you control →" (Repurpose, `spdr` 31016); "Discard an ally or
3739
+ * [persona] support you control →" (Delusion of Collusion, `sm` 27170): cards in play discarded as part of the cost.
3740
+ * A candidate must be able to leave play. See `InPlayCostPick`; docs/phase7-wave4.md §3.25.
3741
+ */
3742
+ readonly discardCards?: InPlayCostPick;
3743
+ /**
3744
+ * "Discard a card tucked here →" (Cindy Moon, `silk` 52001b; docs/phase7-wave9.md §3.39): cards tucked under a card
3745
+ * discarded as part of the cost, the payer choosing which. See `TuckedCostPick`.
3746
+ */
3747
+ readonly discardTucked?: TuckedCostPick;
3748
+ /**
3749
+ * "Deal 1 damage to a [Web-Warrior] character you control →" (Thwip Thwip!, `spdr` 31017; Quick Quip, `silk` 52034):
3750
+ * the picked character(s) each take `amount` damage from this card as the cost. See `InPlayCostPick` for the pick.
3751
+ *
3752
+ * - **Dealing, not taking: paid whatever is prevented.** RRG 1.8 "Cost" (p. 14): "If dealing damage is a cost, that
3753
+ * cost is considered paid even if some or all of that damage is prevented"; ruling 2026-06-25 R6 and 2026-07-09 R2
3754
+ * (Clarity of Purpose): damage dealt as a cost can be reduced or prevented, even to 0, and the cost remains paid.
3755
+ * So toughness, a tough status card, a "prevent all damage" constant or a reduction do not stop the pick, and the
3756
+ * ability's effects resolve however much of the damage is prevented as it is dealt (nothing settles it).
3757
+ * - **Not a character that cannot take damage from this card** (`canBeDealtCostDamage`): a cost is part of its
3758
+ * ability and subject to the targeting rules (ruling 2026-01-26 R1, Nova's Ms. Marvel), and dealing damage is all
3759
+ * this cost does to the picked card. With no candidate the ability is not offered (RRG 1.8 "Initiating
3760
+ * Abilities", p. 24, steps 3 and 5).
3761
+ * - Unlike `damageSelf` and `indirectDamage` ("take N damage"), which are not paid unless all of it is taken.
3762
+ */
3763
+ readonly damageCards?: DamageCostPick;
3764
+ /**
3765
+ * "Find Touched and attach it to a character other than Rogue … →" (Energy Transfer, `rogue` 38007, erratum RRG 1.8
3766
+ * p. 69; docs/phase7-wave6.md §3.49): as the cost, a card is attached to a host the payer picks. See `AttachCost`.
3767
+ */
3768
+ readonly attach?: AttachCost;
3769
+ /**
3770
+ * "Search the encounter deck and discard pile for a minion and put it into play engaged with you" as a cost (Hunted,
3771
+ * `cw` 56007; docs/phase7-wave10-box-heroes.md B3.1). See `EncounterSearchIntoPlayCost`.
3772
+ */
3773
+ readonly searchEncounterIntoPlay?: EncounterSearchIntoPlayCost;
3774
+ /**
3775
+ * "… and deal 2 damage to that character →" (Energy Transfer): `amount` damage from the ability's card to each card
3776
+ * `target` names (read with the cost's own picks bound, so `{ kind: "slot", slot: attach.to.slot }` is the host just
3777
+ * picked), as part of the cost. docs/phase7-wave6.md §3.49.
3778
+ *
3779
+ * - **Dealing, not taking.** RRG 1.8 "Cost" (p. 14): "If dealing damage is a cost, that cost is considered paid even
3780
+ * if some or all of that damage is prevented." So nothing about the target's toughness, tough status card or
3781
+ * "cannot take damage" is checked, and the effects resolve whatever is prevented, as for `damageCards` (unlike
3782
+ * `damageSelf` and `indirectDamage`, which are damage the payer's characters *take*: "not considered paid unless
3783
+ * all of that damage was taken").
3784
+ * - **Payable while it names a card in play.** With none, the cost cannot be paid (RRG 1.8 "Cost", p. 13).
3785
+ * - **Before the effects.** One `dealDamage` event per target, pushed above the frame being paid for (RRG 1.8 "Cost
3786
+ * Arrow Icon", p. 14), after the rest of the cost is paid (so after an `attach` in the same cost).
3787
+ *
3788
+ * `choose`: "Deal 1 damage to another friendly character →" (docs/phase7-wave8.md §3.74): the payer picks exactly
3789
+ * one card in play matching `query` (read with the payer as "you" and the ability's card as "self"), in
3790
+ * `costChoices[slot]`; with one candidate the pick is forced and may be omitted. The pick is bound to `slot` for
3791
+ * `target` (usually `{ kind: "slot", slot }`) and for the effects ("… that character's traits"). Any player's card
3792
+ * can be picked: it is the target of the cost, not a card it is paid with (as an attach cost's host, `AttachCost`),
3793
+ * and dealing is paid whatever the target does with the damage. With no candidate the cost cannot be paid and the
3794
+ * ability is not offered. `legalActions` offers one variant per candidate.
3795
+ */
3796
+ readonly dealDamage?: {
3797
+ readonly target: TargetRef;
3798
+ readonly amount: number;
3799
+ readonly choose?: {
3800
+ readonly slot: string;
3801
+ readonly query: TargetQuery;
3802
+ };
3803
+ };
3804
+ /**
3805
+ * "Attached villain attacks you →" (docs/phase7-wave7.md §3.19 (b)): `enemy` (the first card the ref names) attacks
3806
+ * the paying player as the cost. See `enemy-attack-cost.ts`.
3807
+ *
3808
+ * - **Resolved in full before the effects.** The attack is a step `payCost` pushes above the frame being paid for:
3809
+ * boost card, defender (any player may defend, as for any enemy attack), boost abilities, damage, then the "after
3810
+ * [enemy] attacks" abilities, all before the text after the arrow (RRG 1.8 "Cost Arrow Icon", p. 14). It is paid
3811
+ * after the rest of the cost, resources included.
3812
+ * - **Payable only while the enemy could attack** (owner decision, §4.1 Q13 = B): not while it is stunned (the attack
3813
+ * would be replaced by discarding the stun; RRG 1.8 "Stun, Stunned", p. 41), cannot activate, has a dashed ATK or
3814
+ * is not in play. The ability is then not offered and the stun is not spent.
3815
+ * - **Paid only by an attack that is made.** One an interrupt cancels was not made, so the ability's effects do not
3816
+ * resolve (`settleEnemyAttackCost`); one another player defends was. Not for a resource ability, which is paid in
3817
+ * the middle of another payment.
3818
+ */
3819
+ readonly enemyAttack?: {
3820
+ readonly enemy: TargetRef;
3821
+ readonly against: "you";
3822
+ };
3823
+ /**
3824
+ * "Resolve its 'Forced Response' as if it just attacked you →" (Golden Horse, `aoa` 45090; Metal Wings 45091;
3825
+ * docs/phase7-wave8.md §3.11): the printed abilities of kind `trigger` on `of` (the first card the ref names) resolve
3826
+ * as the cost, with the paying player as "you". See `resolve-ability-cost.ts` and `EffectSpec resolveSpecials`, whose
3827
+ * `abilities` and `asIf` these are.
3828
+ *
3829
+ * - **Resolved in full before the effects.** The abilities are steps `payCost` pushes above the frame being paid for
3830
+ * (RRG 1.8 "Cost Arrow Icon", p. 14), after the rest of the cost.
3831
+ * - **Payable only while resolving them would change something** (owner decision §4.1 Q7 = A): not when the card has
3832
+ * no live ability of the kind, and not when what it has would leave the game as it is (a discard with nothing to
3833
+ * discard). The ability is then not offered. Judged by resolving them on a copy of the state
3834
+ * (`resolvingWouldChange`), never by the abilities' shape.
3835
+ * - **Paid only by an ability that resolves.** With none resolved the cost is unpaid and the ability's effects do not
3836
+ * resolve (`settleResolveAbilityCost`). Not for a resource ability, which is paid in the middle of another payment.
3837
+ * - **`trigger: "special"`**: "Resolve the 'Special' ability on the [SETTING] environment → discard this card"
3838
+ * (docs/phase7-wave8.md §3.24). RRG 1.8 "Special" (p. 40) lets a Special resolve "through the explicit instruction
3839
+ * of another card ability", which this cost is. With no card for `of` (no such environment in play) the cost
3840
+ * cannot be paid and the ability is not offered (RRG 1.8 "Cost", p. 13).
3841
+ * - **`choose`**: `of` may name several cards ("the [SETTING] environment" with two in play, §4.1 Q15 = A: the
3842
+ * resolving player chooses). The payer picks one in `costChoices[choose]`, as every cost pick is made up front, and
3843
+ * it is bound to that slot for the effects. With exactly one card the pick is forced and may be omitted. A card
3844
+ * whose abilities could change nothing is not a legal pick; the cost is payable while any one is. Absent: the first
3845
+ * card `of` names.
3846
+ */
3847
+ readonly resolveAbility?: {
3848
+ readonly of: TargetRef;
3849
+ readonly choose?: string;
3850
+ readonly trigger: "forcedResponse" | "special";
3851
+ readonly abilities?: readonly AbilityId[];
3852
+ readonly asIf?: {
3853
+ readonly remainingHpAtLeast?: number;
3854
+ };
3855
+ };
3856
+ }
3857
+ /** The kinds of printed ability `EffectSpec resolveSpecials` resolves on another card's instruction (its `trigger`). */
3858
+ export type ResolvableAbilityKind = "special" | "whenRevealed" | "whenDefeated" | "forcedResponse" | "forcedInterrupt" | "preparation" | "boost";
3859
+ /** The ability labels a `RuleSpec grantsLabeledAbility` can give to other cards (docs/phase7-wave9.md §3.3). */
3860
+ export type GrantableAbilityLabel = Extract<ResolvableAbilityKind, "preparation">;
3861
+ /**
3862
+ * The binding slot a granted ability's frame names its granting card in (`RuleSpec grantsLabeledAbility`;
3863
+ * docs/phase7-wave9.md §3.3): the card in play whose constant gave the resolving card this ability, the card its text
3864
+ * names ("Then, discard Night Vision Goggles"). Bound by `resolveSpecials` as the ability is put on the stack, so the
3865
+ * ability still names that card if it leaves play first. Absent on a printed ability.
3866
+ */
3867
+ export declare const GRANTED_BY_SLOT = "_grantedBy";
3868
+ /**
3869
+ * The binding slot that marks a "Boost" ability as borrowed: resolved on a card in play by another card's instruction
3870
+ * (`EffectSpec resolveSpecials` with `trigger: "boost"`; docs/phase7-wave10.md §3.11), not by its card being turned up
3871
+ * as a boost card. Bound on that ability's frame, so it reaches every effect of it, nested ones included. Its cards
3872
+ * are the boost cards whose count the icons that ability gains join (`EffectSpec adjustBoostCount`): none under the
3873
+ * default `borrowedBoostIcons: "nothing"`, the instructing card under `"joinActivation"` (§4.0, question 10). Absent
3874
+ * on an ability resolving for its own boost card.
3875
+ */
3876
+ export declare const BORROWED_BOOST_ICONS_SLOT = "_borrowedBoostIcons";
3877
+ /**
3878
+ * The result an attack records for the labeled abilities resolved during it (docs/phase7-wave9.md §3.2): how many
3879
+ * "Preparation" abilities a `resolveSpecials` resolved while that attack was the innermost one on the stack. Kept in
3880
+ * the attack's event frame `vars`, so it is in the event's `results` once its response window opens ("if no
3881
+ * 'Preparation' ability was resolved"). Absent when none resolved.
3882
+ */
3883
+ export declare const labeledResolvedVar: (label: GrantableAbilityLabel) => string;
3884
+ /**
3885
+ * Whether a printed ability is one `resolveSpecials` resolves for this `trigger` and `tag` (`EffectSpec
3886
+ * resolveSpecials`): a "Forced Response" is a `response` trigger that is forced and a "Forced Interrupt" an `interrupt`
3887
+ * trigger that is forced; the others are named by their own trigger kind. A card's attach instruction is not one of its
3888
+ * When Revealed abilities (docs/phase7-wave7.md §3.35).
3889
+ */
3890
+ export declare function resolvableAs(definition: AbilityDefinition | undefined, trigger: ResolvableAbilityKind, tag?: string): boolean;
3891
+ /**
3892
+ * `AbilityCost.attach` (docs/phase7-wave6.md §3.49): "Find Touched and attach it to a character other than Rogue →".
3893
+ *
3894
+ * - **The card.** The first card `card` names that the payer may pay with, read with the payer as `you` and the
3895
+ * ability's card as `self`: for a `TargetRef find` ("find Touched", §3.48), in a find's search order. RRG 1.8 "Cost" (p. 14): "that player
3896
+ * must pay costs with cards and/or game elements they control", and "If a cost requires a game element that is not in
3897
+ * play, the player paying the cost may only use game elements that are in their own out-of-play areas": a card in play
3898
+ * the payer does not control, or out of play anywhere but the payer's own hand, deck, discard pile or set-aside area,
3899
+ * cannot pay it. A find is logged `cardFound`, and each deck it searched is shuffled after the attach (RRG 1.8
3900
+ * "Search", p. 39). With no card, the cost cannot be paid and the ability is not offered.
3901
+ * - **The host.** One card in play matching `to.query` (read with the card bound to `bind`, when given), picked by the
3902
+ * payer in `costChoices[to.slot]` and bound to that slot for the rest of the cost and the effects; with exactly one
3903
+ * candidate the pick is forced and may be omitted. Any card in play can be a candidate (an enemy, another player's
3904
+ * identity or ally): the host is a target of the cost, not a card it is paid with. Not the card itself, not a host that
3905
+ * cannot have it attached, and not a new host for a card that cannot be unattached (`canAttachTo`). The card's own
3906
+ * "attach to" text is not read (RRG 1.8 "Attach To", p. 8: "not resolved if another ability causes that card to attach
3907
+ * to a specific game element"). The card's current host is a legal pick: it stays there, as `findCard` leaves a card
3908
+ * already at its destination (§3.48). With no candidate the cost cannot be paid and the ability is not offered.
3909
+ * - **Control.** Unchanged: a card attached from out of play enters under its owner's control, one moved between hosts
3910
+ * keeps its controller (`resolve/attach.ts`). Its host leaving play discards it to its owner's discard pile (RRG 1.8
3911
+ * "Attach To", p. 8).
3912
+ * - **Paid at once,** with the rest of the cost, before the ability's effects.
3913
+ */
3914
+ export interface AttachCost {
3915
+ readonly card: TargetRef;
3916
+ readonly to: {
3917
+ readonly slot: string;
3918
+ readonly query: TargetQuery;
3919
+ };
3920
+ /** The attached card, bound to this slot for the effects ("you gain each of the attached character's traits"). */
3921
+ readonly bind?: string;
3922
+ }
3923
+ /**
3924
+ * `AbilityCost.searchEncounterIntoPlay` (docs/phase7-wave10-box-heroes.md B3.1; `encounter-search-cost.ts`): the payer
3925
+ * searches the active encounter deck's `zones` for one card matching `query` and puts it into play, a minion engaged
3926
+ * with them.
3927
+ *
3928
+ * - **Candidates.** The cards of those piles matching `query` (the payer as `you`, the ability's card as `self`) that
3929
+ * could enter play in the payer's area (the unique rule and "cannot enter play", as `TargetQuery.canEnterPlay`
3930
+ * reads them), the deck's in deck order and then the discard pile's. Set-aside cards are not searched. RRG 1.8
3931
+ * "Cost" (p. 14) has a cost that "requires a game element that is not in play" use only the payer's "own
3932
+ * out-of-play areas"; the card names the encounter deck and its discard pile, and a card's text takes precedence
3933
+ * over the Rules Reference ("The Golden Rules", p. 4).
3934
+ * - **The pick.** RRG 1.8 "Search" (p. 39): the player chooses among the cards that satisfy the search. One card,
3935
+ * named in `costChoices[slot]` and bound to `slot` for the rest of the cost and for the effects; with exactly one
3936
+ * candidate the pick is forced and may be omitted. `legalActions` offers one variant per candidate.
3937
+ * - **Payable only with a candidate** (owner decision 2026-10-11, box-heroes question 17 = A, provisional; RRG 1.8
3938
+ * "Cost", p. 13: paid in full or not at all): with none the ability or play is not offered and no deck is shuffled.
3939
+ * - **Paid** in a step above the frame being paid for (RRG 1.8 "Cost Arrow Icon", p. 14): each searched deck is
3940
+ * shuffled (RRG 1.8 "Search", p. 39: "upon completion of that game step … shuffle that entire deck", so before
3941
+ * anything the card's entry triggers; a deck shuffled with the card still in it and then one card short is in as
3942
+ * random an order as one shuffled after), then the card is put into play as `EffectSpec putIntoPlay` does it: not
3943
+ * revealed, so no When Revealed and no surge (RRG 1.8 "Play, Put into Play", p. 32; "When Revealed", p. 48),
3944
+ * announced as entering play and engaging, with quickstrike and teamwork after it (owner decision 2026-10-11,
3945
+ * box-heroes question 18 = A, provisional; ruling February 28, 2026 - Ruling 1, and Ruling 4's "Quickstrike
3946
+ * triggers upon engagement" for a minion that is not revealed). Those resolve before the frame paid for.
3947
+ */
3948
+ export interface EncounterSearchIntoPlayCost {
3949
+ readonly slot: string;
3950
+ readonly query: TargetQuery;
3951
+ readonly zones: readonly ("deck" | "discard")[];
3952
+ }
3953
+ /** `AbilityCost.damageCards`: an `InPlayCostPick` whose picks are each dealt `amount` damage. */
3954
+ export interface DamageCostPick extends InPlayCostPick {
3955
+ readonly amount: number;
3956
+ }
3957
+ /**
3958
+ * `AbilityCost.discardTucked`: a pick among the cards tucked under `under`, each discarded as the cost. It is asked,
3959
+ * defaulted, checked and bound as an `InPlayCostPick` in mode `discard` is (`costChoices[slot]`, `min`–`max`, `bind`,
3960
+ * a forced pick paying itself), with these differences:
3961
+ *
3962
+ * - **Candidates.** The cards tucked under the one card `under` names (the ability's card as `self`, the payer as
3963
+ * `you`), in tuck order, that match `query` (`{}`: any of them). Tucked cards are out of play and nobody controls
3964
+ * them (RRG 1.8 "Tuck", p. 45), so it is the card they are under that the payer must control (RRG 1.8 "Cost", p. 14:
3965
+ * paid "with cards and/or game elements they control"); `under` naming no card, several, or a card of another
3966
+ * player leaves no candidate.
3967
+ * - **Payable** only while at least `min` cards are there (RRG 1.8 "Cost", p. 13: paid in full or not at all;
3968
+ * "Initiating Abilities", p. 24, steps 3 and 5). Nothing stops a tucked card being discarded: it is not in play, so
3969
+ * "cannot leave play" and Permanent do not apply to it.
3970
+ * - **Paid** by the same move as an effect that discards a tucked card (`moveCardsTo(…, "discard")`, with this
3971
+ * ability's card as the source): each goes to its owner's discard pile, an encounter card to the encounter discard
3972
+ * pile, and the log holds the same `cardMoved` out of the `tucked` zone. Whatever later answers a tucked card's
3973
+ * discard "by a player card effect" (docs/phase7-wave9.md §3.40, §4.1 Q7) hears a cost and an effect alike.
3974
+ * - `each`, `includesSelf`, `superlative`, `bindHosts` and `snapshotStats` are for cards in play and are not read.
3975
+ */
3976
+ export interface TuckedCostPick extends InPlayCostPick {
3977
+ readonly under: TargetRef;
3978
+ }
3979
+ /** The pick as a `TuckedCostPick` when it is one (`AbilityCost.discardTucked`), else null. */
3980
+ export declare const tuckedPickOf: (pick: InPlayCostPick) => TuckedCostPick | null;
3981
+ /** How an `InPlayCostPick` spends its cards. */
3982
+ export type InPlayCostMode = "exhaust" | "ready" | "return" | "discard" | "damage";
3983
+ /**
3984
+ * Every `InPlayCostPick` a cost makes, in the order they are checked: the exhaust picks, the ready pick, the return
3985
+ * pick, the discard pick, the tucked-card discard pick (mode `discard` too; told apart by `tuckedPickOf`), the damage
3986
+ * pick.
3987
+ */
3988
+ export declare function inPlayPicksOf(cost: AbilityCost | undefined): readonly {
3989
+ readonly mode: InPlayCostMode;
3990
+ readonly pick: InPlayCostPick;
3991
+ }[];
3992
+ /**
3993
+ * A cost paid with cards in play (`AbilityCost.exhaustCards` / `readyCards` / `returnToHand` / `discardCards` /
3994
+ * `damageCards`).
3995
+ *
3996
+ * - **Who pays.** Only cards in play that the paying player controls and that match `query` are candidates (RRG 1.8
3997
+ * "Cost", p. 14: "that player must pay costs with cards and/or game elements they control"; ruling June 25, 2026
3998
+ * #1: Steve Rogers can't pay Shield Toss with a Shield Falcon controls). An exhaust candidate must be ready, a
3999
+ * ready candidate exhausted and able to ready. A return candidate must be able to leave play (RRG "Cannot", p. 11).
4000
+ * - **How many.** `min`–`max` cards; `max` omitted means no cap. "Any number" and "up to N" still mean at least one
4001
+ * (RRG 1.8 "Cost", p. 14), so `min` is at least 1 (`@mc/cards`' validator enforces it).
4002
+ * - **Picking.** The picks come from `costChoices[slot]`. With no picks given, the cost pays itself only when the
4003
+ * choice is forced: exactly `min` candidates exist, so every legal payment takes all of them (a unique Shield).
4004
+ * Otherwise the command must name its picks. The cards are bound to `slot`, their count to var `bind`.
4005
+ * - **Payable.** With fewer than `min` candidates the cost can't be paid, so the ability can't be initiated and
4006
+ * `legalActions` doesn't offer it (RRG 1.8 "Initiating Abilities", p. 24, steps 3 and 5).
4007
+ * - **All at once.** A card can pay only one component of a cost: it can't be exhausted twice, both exhausted and
4008
+ * returned, or also exhausted for a resource in the same payment (RRG 1.8 "Cost", p. 13: multiple costs "must be
4009
+ * paid simultaneously").
4010
+ */
4011
+ export interface InPlayCostPick {
4012
+ readonly slot: string;
4013
+ readonly query: TargetQuery;
4014
+ readonly min: number;
4015
+ readonly max?: number;
4016
+ readonly bind?: string;
4017
+ /**
4018
+ * "Discard a copy of [upgrade] from an enemy → deal 8 damage to **that enemy**" (docs/phase7-wave8.md §3.72): the
4019
+ * cards the picks were attached to, read as the cost is planned (while they are still attached), bound to this slot
4020
+ * for the effects. One entry per distinct host, in pick order; a pick that is not attached adds none. The host is
4021
+ * read here because the pick is off it once the cost is paid (RRG 1.8 "Cost", p. 13: paid before the effects).
4022
+ */
4023
+ readonly bindHosts?: string;
4024
+ /**
4025
+ * "Discard an ally you control → add that ally's matching power …" (docs/phase7-wave8.md §3.81): the picked cards'
4026
+ * powers as they stand in play when the cost is planned, modifiers included, recorded as the vars `<slot>.thw`,
4027
+ * `<slot>.atk` and `<slot>.def` (summed over the picks; a dash, or a card with no such power, as 0: RRG 1.8 "Dash
4028
+ * (Value)", p. 15). The effects read the card as it was when it paid, not the printed card the discard pile holds:
4029
+ * a cost is paid before the effects (RRG 1.8 "Cost", p. 13), and by then its modifiers are gone.
4030
+ */
4031
+ readonly snapshotStats?: true;
4032
+ /**
4033
+ * "Discard the highest-cost upgrade you control →" (Arm Cannon, `sm` 27147): only the cards matching `query` that the
4034
+ * payer controls and that tie for the highest (or lowest) `measure` among them can pay; a tie is the payer's pick. The
4035
+ * superlative is taken over every matching card before asking whether it can pay, so a highest-cost card that cannot
4036
+ * leave play leaves the cost unpayable rather than passing the cost to the next one down (the text names that card).
4037
+ * The exception is a permanent card the source cannot remove, which a discard or return cost skips: RRG 1.8
4038
+ * "Permanent" (p. 32) retargets the effect to "the non-permanent card that fits its criteria" (applied to costs, an
4039
+ * engine interpretation).
4040
+ */
4041
+ readonly superlative?: {
4042
+ readonly order: "highest" | "lowest";
4043
+ readonly measure: DiscardCombined["measure"];
4044
+ };
4045
+ /**
4046
+ * "Exhaust your identity and **each** support you control →" (Family Matters, `mojo` 39061): the cost takes every
4047
+ * card in play the payer controls that matches `query`, with nothing to pick.
4048
+ *
4049
+ * - **All or nothing.** Payable only while every one of those cards can pay (each is ready, to exhaust it): RRG 1.8
4050
+ * "Initiating Abilities" (p. 24, step 3, "Determine the cost … and the player's ability to pay them"; step 5, "If
4051
+ * this step is reached and the cost(s) cannot be paid, abort this process without paying any costs") and "Cost
4052
+ * Arrow Icon" (p. 14, the text before the arrow "must be paid and/or resolved in full"). One exhausted support
4053
+ * leaves the ability unavailable; it is not paid with the rest.
4054
+ * - **Read when the cost is paid.** The set is whatever matches then, so a card that entered play since is in it and
4055
+ * another player's cards never are (RRG 1.8 "Cost", p. 13: paid "with cards and/or game elements they control").
4056
+ * - **`min` is how many must match**, and may be 0: with no matching card that part of the cost asks for nothing and
4057
+ * the rest of the cost pays alone (Family Matters with no support exhausts the identity). `max` is not read.
4058
+ * - A command's `costChoices[slot]`, if given, must name exactly that set. The cards are bound to `slot`, their
4059
+ * count to `bind`.
4060
+ * - The query must not match a card another part of the same cost spends (the ability's own card under
4061
+ * `exhaustSelf`, the identity under `exhaustIdentity`, another pick's card): one card cannot pay two parts of a
4062
+ * cost (RRG 1.8 "Cost", p. 13), so that cost would never be payable.
4063
+ */
4064
+ readonly each?: true;
4065
+ /**
4066
+ * "Exhaust [this card] and up to 2 other [Wakanda] allies and/or supports you control →" (The Elephant's Trunk, `bp`
4067
+ * 51007): the ability's own card is one of the picks, always, and the rest are the payer's choice. RRG 1.8 FAQ
4068
+ * "The Elephant's Trunk (#7)" (p. 65): "The Elephant's Trunk is itself a Wakanda support, so it satisfies the minimum
4069
+ * of one Wakanda ally or support needed to pay its ability's cost."
4070
+ *
4071
+ * - **One pick, not two.** The card counts toward `min` and `max` and into `bind` ("for each card exhausted this
4072
+ * way (including this one)"), so "this and up to 2 others" is `min: 1, max: 3`: the minimum of one (RRG 1.8
4073
+ * "Cost", p. 14) is kept, and the card itself is what meets it.
4074
+ * - **The card must match `query`** and be able to pay (ready, to exhaust it). When it does not, the cost is not
4075
+ * payable whatever else could pay: the text names this card. A card that is named beside a pick it is not one of
4076
+ * ("exhaust this support and up to 2 allies") is `exhaustSelf` plus a pick instead, which needs one of the others.
4077
+ * - **Picking.** A command's `costChoices[slot]` must hold the card. `legalActions`' default pick is the card alone
4078
+ * (with `min` 1), and a timing window asks only for the others.
4079
+ * - Not with `each`, and not beside another part of the cost that spends the same card (`exhaustSelf`).
4080
+ */
4081
+ readonly includesSelf?: true;
4082
+ /**
4083
+ * "Exhaust any number of characters you control **with a combined THW greater than attached enemy's SCH** →"
4084
+ * (docs/phase7-wave9.md §3.49): a threshold over the picked cards together, beside the count. The picks' `stat` as
4085
+ * it stands in play (modifiers included; a dash, or a card with no such power, as 0: RRG 1.8 "Dash (Value)", p. 15)
4086
+ * is summed, and the payment is legal only when that total is greater than `moreThan`, read as the cost is planned
4087
+ * with the ability's card as "self" and the payer as "you".
4088
+ *
4089
+ * - **Payable** only while every card that could pay, together (the `max` highest when there is a cap), exceeds it:
4090
+ * RRG 1.8 "Initiating Abilities" (p. 24, steps 3 and 5) and "Cost Arrow Icon" (p. 14, the text before the arrow
4091
+ * "must be paid and/or resolved in full").
4092
+ * - **Picking.** A payment that does not exceed it is refused. With no picks given, the forced pick pays as for any
4093
+ * pick; `legalActions`' default pick is the fewest cards that exceed it, highest first.
4094
+ * - Any number above the threshold is legal: a player may exhaust more than is needed (as a cost may be overpaid,
4095
+ * RRG 1.8 "Cost", p. 13).
4096
+ * - Not with `each`, and not for a tucked pick (a tucked card has no powers).
4097
+ */
4098
+ readonly combined?: InPlayCombined;
4099
+ }
4100
+ /** `InPlayCostPick.combined`: the picks' total `stat` must be greater than `moreThan`. */
4101
+ export interface InPlayCombined {
4102
+ readonly stat: "atk" | "thw" | "def" | "rec" | "sch";
4103
+ readonly moreThan: ValueSpec;
4104
+ }
4105
+ export interface AbilityLimit {
4106
+ readonly count: number;
4107
+ readonly period: "turn" | "phase" | "round";
4108
+ /**
4109
+ * "(Limit once per round **for each aspect**.)" (Superhuman Agility, 04031a): the count is kept separately for
4110
+ * each value of this key, so the ability may resolve `count` times per period *per* value.
4111
+ *
4112
+ * - `"aspectOfEventCard"`: the aspect of the card the triggering event names — its `printedAspect` if it has one
4113
+ * (an identity-specific card that prints an aspect, §1.2), else its `aspect`.
4114
+ *
4115
+ * Only meaningful on a triggered ability: with no triggering event (an "Action" used by command) the ability falls
4116
+ * back to one shared count, exactly as an unqualified limit behaves today.
4117
+ */
4118
+ /**
4119
+ * - `"player"`: "(Limit once per round **per player**.)" (The Grand Collection 1B, Library Labyrinth 16085a, `gmw`;
4120
+ * docs/phase7-wave3.md §3.36): a shared card's ability keeps one count for each player who uses it, keyed by the
4121
+ * ability's controller — for an encounter card's action, the player who triggers it.
4122
+ */
4123
+ /**
4124
+ * - `"triggeringEvent"`: "(Max 1 per event.)" / "(Max 1 per attack.)" / "(Max 1 per basic power use.)" (Web-Bracelet,
4125
+ * Ghost Kick, Phantom Flip, `sm`; docs/phase7-wave5.md §3.14). RRG 1.8 "Max 1 per [instance]" (p. 28): "restricts
4126
+ * the number of times an ability can be triggered by a single instance of a triggering effect across all copies of
4127
+ * the card with the maximum". One count per triggering event instance (its event frame), shared by every card with
4128
+ * the same title; `period` is not read, and the counts are dropped at every turn, phase and round boundary.
4129
+ * On an event played from hand in a timing window (docs/phase7-wave7.md §3.69) a copy at the maximum is not
4130
+ * offered, a second copy picked with the first is left in hand unpaid, and a copy whose effects are canceled
4131
+ * still counts (RRG 1.8 "Max, Maximum", p. 28). The maximum is for all players, as that entry says.
4132
+ */
4133
+ /**
4134
+ * - `"paidCard"`: "Resource: … → generate a [energy] resource for an Aerial card. **(Limit once per card.)**"
4135
+ * (Falcon's Flock, `falcon` 53006; docs/phase7-wave9.md §3.46 (a)). RRG 1.8 "Limit" (pp. 26-27); "Resource
4136
+ * Ability" (p. 37). On a resource ability only: it may be used `count` times toward each card (or ability cost)
4137
+ * being paid for, any number of cards in a turn or a round. The count is the payment's own (`priceOf` counts the
4138
+ * uses a payment lists and refuses one past the limit with `limit_reached`; `paymentOptions` offers no use past
4139
+ * it), so nothing is kept in `GameState.abilityUses`: a payment that is refused, or a play that is aborted,
4140
+ * leaves nothing behind, and the next card paid for starts at zero. `period` is not read. With it a `repeatable`
4141
+ * ability ("remove 1 counter →", one use per counter) stops at `count` uses a payment; without `repeatable` a
4142
+ * resource ability is used once a payment already, and the limit names that rule as the card prints it.
4143
+ * NOT SETTLED by a ruling: whether "per card" also joins two payments made for one card (its play, and later the
4144
+ * cost of an ability it prints). Each payment is counted on its own here (the spec's reading, reported with it).
4145
+ */
4146
+ /**
4147
+ * - `"eventPlayer"`: "Forced Interrupt: When a player reveals a treachery, place 1 threat here. **(Limit once per
4148
+ * phase per player.)**" (Cut Off Support 56063b, Open Rebellion 56172b, `cw`; docs/phase7-wave10.md §3.14). RRG 1.8
4149
+ * "Limit" (pp. 26-27). One count for each player the triggering event belongs to: its player subject
4150
+ * (`eventSubjects(event).players[0]`, the player `PlayerRef eventPlayer` names; for a reveal, the revealing
4151
+ * player). `"player"` keys by the ability's controller, and an encounter card's forced ability has none of its
4152
+ * own, so that key would not tell the players apart. The key does not depend on who resolves the ability. An
4153
+ * event with no player subject shares one count (`none`), as does an ability used with no triggering event; the
4154
+ * DSL validator allows it on an interrupt or a response only.
4155
+ */
4156
+ readonly per?: "aspectOfEventCard" | "player" | "eventPlayer" | "triggeringEvent" | "paidCard";
4157
+ }
4158
+ /**
4159
+ * How many times `definition` may be used in one payment by its own limit (`AbilityLimit.per: "paidCard"`,
4160
+ * docs/phase7-wave9.md §3.46 (a)), or null when it has no such limit.
4161
+ */
4162
+ export declare const usesPerPaidCard: (definition: AbilityDefinition | undefined) => number | null;
4163
+ /**
4164
+ * What a resource ability generates. A bare number is that many wild
4165
+ * resources; a pool is typed ("Generate a [mental] resource" → `{ mental: 1 }`);
4166
+ * `topCardOfDiscard` copies the printed resources of the top card of the
4167
+ * controller's discard pile (Pepper Potts).
4168
+ */
4169
+ export type ResourceGeneration = number | Partial<ResourcePool> | {
4170
+ readonly kind: "topCardOfDiscard";
4171
+ }
4172
+ /**
4173
+ * "Generate the printed resource on your faceup energy form upgrade" (Energy Duplication, `mts` 21006): the printed
4174
+ * resources of the matching card(s) in play, read as they are when the resource is generated. docs/phase7-wave4.md
4175
+ * §3.38.
4176
+ */
4177
+ | {
4178
+ readonly kind: "printedResourcesOf";
4179
+ readonly cards: TargetQuery;
4180
+ }
4181
+ /**
4182
+ * "This card generates [wild] for each ally you control (to a maximum of 3)" (Band Together, `mts` 21018): one
4183
+ * `resource` per matching card in play, to `max`. docs/phase7-wave4.md §3.38.
4184
+ */
4185
+ | {
4186
+ readonly kind: "perCard";
4187
+ readonly resource: keyof ResourcePool;
4188
+ readonly per: TargetQuery;
4189
+ readonly max?: number;
4190
+ }
4191
+ /**
4192
+ * "Generate a [physical] resource for each tough status card on Colossus" (Titanium Muscles, `mut_gen` 32005;
4193
+ * docs/phase7-wave6.md §3.78): `amount` of `resource`, the value read as the resource is generated with "this card"
4194
+ * as the generating card and "you" as the player using it (to `max`, never below 0). `perCard` is the count of
4195
+ * cards in play matching a query; this is any number the table gives (a status-card count, counters, a stat).
4196
+ *
4197
+ * An amount of 0 generates nothing and the ability may still be used: RRG 1.8 "Resource Ability" (p. 37) lets it
4198
+ * trigger "anytime the player who controls the ability is generating resources to pay a cost", it names no target
4199
+ * whose absence would stop the cost being paid ("Cost", p. 13), and generating beyond or short of what a cost needs
4200
+ * is the player's to choose ("While paying a cost, a player is permitted to generate resources beyond the specified
4201
+ * cost"). Its cost is paid for nothing, as `perCard` with no matching card and `topCardOfDiscard` with an empty pile
4202
+ * already are.
4203
+ */
4204
+ | {
4205
+ readonly kind: "amount";
4206
+ readonly resource: keyof ResourcePool;
4207
+ readonly amount: ValueSpec;
4208
+ readonly max?: number;
4209
+ };
4210
+ export interface AbilityDefinition {
4211
+ readonly trigger: AbilityTriggerSpec;
4212
+ /**
4213
+ * Authoring metadata, ignored by the engine: this ability has an `attack` effect and no "(attack)" label on purpose,
4214
+ * and `citation` names the card text or ruling that says so (Dance of Death, FAQ "Dance of Death (#4)", RRG 1.8
4215
+ * p. 59). Only `dsl/validate.ts` reads it, to waive its "an attack effect belongs to an (attack)-labeled ability" check.
4216
+ */
4217
+ readonly unlabeledAttack?: {
4218
+ readonly citation: string;
4219
+ };
4220
+ /**
4221
+ * This interrupt or response is the card's own printed answer to the card it is attached to leaving play, which needs
4222
+ * the card to stay in play, unattached, rather than be removed from the game as RRG 1.8 "Permanent" (p. 32) has a
4223
+ * stranded permanent attachment with no "attach to" target (`removedWithoutHost`, `effects.ts`; #238). Set by the
4224
+ * scripts of the cards whose text says where they go instead, for the leaving their text names: `"leaves"`, however
4225
+ * the host leaves play (Frostbite, `iceman` 46002: "After attached enemy … leaves play, set this card aside", as the
4226
+ * Iceman rules insert also instructs); `"defeated"`, only when the host is defeated (Wrist Navigator, `sm` 27189a/b:
4227
+ * "Interrupt: When the attached card is defeated, draw 1 card. (Return this card to your play area.)"), so a host
4228
+ * that leaves another way strands it under the RRG. Card text over the Rules Reference (RRG 1.8 "The Golden Rules",
4229
+ * p. 4). Not inferred from the trigger: another card that only answers its host leaving ("draw 1 card") is still
4230
+ * removed from the game (owner, 2026-10-18).
4231
+ */
4232
+ readonly staysWhenHostLeaves?: "leaves" | "defeated";
4233
+ /**
4234
+ * The ability "refers to the mission area" though its printed words do not name it card by card (MC45 p. 5: cards
4235
+ * there "cannot be affected by card abilities unless the ability refers to the mission area";
4236
+ * docs/phase7-wave8.md §3.33, §4.1 Q19 = B): every query, host reference and target ref of this ability may match
4237
+ * cards in the closed in-play scenario area of this name as well as cards outside it. Without it an ability reaches
4238
+ * such a card only through a query that names the area (`TargetQuery.inScenarioPlayArea`), and its own card. An
4239
+ * upgrade attached to an ally at the mission is an ordinary ability with no reach, so its "attached ally gets …"
4240
+ * finds no host there.
4241
+ */
4242
+ readonly reaches?: {
4243
+ readonly scenarioPlayArea: string;
4244
+ };
4245
+ readonly cost?: AbilityCost;
4246
+ readonly limit?: AbilityLimit;
4247
+ readonly label?: readonly AbilityLabel[];
4248
+ readonly effects: readonly EffectSpec[];
4249
+ /**
4250
+ * How many of the leading `effects` are the ability's printed cost, written as effects because paying them resolves
4251
+ * as effects do: "Discard cards from the top of the encounter deck until a minion is discarded and put that minion
4252
+ * into play engaged with you → remove 3 threat from the main scheme" has two. They resolve exactly as before; the
4253
+ * number is read only where the rules tell a cost from an effect. RRG 1.8 "Cost" (p. 13): "An ability's cost cannot
4254
+ * be paid if that ability's effect requires one or more targets and there is not at least one valid target", so a
4255
+ * cost effect is no part of its own that could make the ability initiable (`abilityTargetFault`): with no threat on
4256
+ * the scheme the ability cannot be initiated and the minion is not put into play. Absent: none.
4257
+ */
4258
+ readonly costEffects?: number;
4259
+ /** Resource abilities only. Defaults to 1 wild resource. */
4260
+ readonly generates?: ResourceGeneration;
4261
+ /** Resource abilities only: "generate a [wild] resource for an event" — usable only while paying for a matching card. */
4262
+ readonly generatesFor?: TargetQuery;
4263
+ /**
4264
+ * Resource abilities only: "Resource: Generate a [energy] resource **to overpay for a card**. (Limit once per card.)"
4265
+ * (Mr. Hollywood, `wonder_man` 58009; docs/phase7-wave10-hero-packs.md H3.14). What the ability generates may join a
4266
+ * payment only as overpayment. RRG 1.8 "Cost" (p. 13): "Resources generated beyond the specified cost are considered
4267
+ * to have been overpaid for that cost and were not paid for that cost."
4268
+ *
4269
+ * - **Never toward the cost.** The rest of the payment must cover the whole cost by itself (`pricePlay` judges the
4270
+ * payment without these resources); a payment that needs them to reach the cost is refused with
4271
+ * `insufficient_resources`. At a cost of 0 the ability alone is a legal payment.
4272
+ * - **Always overpaid.** They are in `overpaid.total` and in `overpaid.<type>` (a wild in every type, which the
4273
+ * player may name it as: January 17, 2026 - Ruling 4 (1)), and in `paid.total` / `paid.<type>`, which count
4274
+ * everything the payment generated. They are in none of the views of what was paid for the cost: `paid.count`,
4275
+ * `paid.as.<type>`, `paid.cards.*`, the X of a "spend X resources" cost, a chosen-size cost's size.
4276
+ * - **Only while a card is being played** (owner decision, 2026-10-12, hero-packs Q20 = A): the ability is not
4277
+ * offered for, and is refused in, any other payment (an ability's cost, an obligation's "spend … resources", a
4278
+ * basic power's or a form change's additional cost), which is where "overpaid for this card" is never read.
4279
+ * - The ability is otherwise a resource ability like any other: its own cost, form, `while`, limit and
4280
+ * `generatesFor` apply, and it is announced as generated (`resourcesGenerated`) with the payment.
4281
+ *
4282
+ * Not read on a `whenSpent` trigger (a card spent from hand generates toward the cost by the rules of spending it).
4283
+ */
4284
+ readonly overpayOnly?: true;
4285
+ /**
4286
+ * On the ability a card with a printed X cost (`specialCost: "X"`) triggers when it is played: the least X the
4287
+ * player may name (`playCard.x`). Absent: 0, the least value of any X (RRG 1.8 "Non-Numerical Variable", p. 30).
4288
+ *
4289
+ * Written where the ability does something to X chosen things and nothing else ("Choose X schemes. Remove 2 threat
4290
+ * from each chosen scheme"): at X = 0 it would choose nothing and change nothing, so the card cannot be played that
4291
+ * way (the owner's answer 52B, 2026-10-13, docs/phase7-wave10.md §4.0; RRG 1.8 "Choose (Game Element)", p. 12, and
4292
+ * "Target", p. 42). A play that names a lower X, or none, is refused with `invalid_choice` (`pricePlay`), whoever
4293
+ * starts it: a play command, a card played by an effect, an interrupt or response played in a window.
4294
+ * `minimumChosenX` reads it for a client's X picker. A positive whole number, on an action, interrupt or response.
4295
+ */
4296
+ readonly minX?: number;
4297
+ /**
4298
+ * Star-Lord, "What could go wrong?" (`stld` 17001a): "Interrupt: When you play a card from your hand, deal yourself 1
4299
+ * facedown encounter card → reduce the cost to play that card by 3. (Limit once per round.)" On an `interrupt` trigger
4300
+ * (its printed timing, `on: cardBeingPlayed`), this makes it a cost modifier the player opts into while playing a card
4301
+ * (`playCard.costReductionAbilities`) instead of an ability offered in that window: its cost is paid and its limit
4302
+ * counted with the play, and the card costs `amount` less (RRG 1.8 "Initiating Abilities", p. 24, step 4: "Apply any
4303
+ * modifiers to the cost(s)"). `cards` is what it may reduce; `fromHand` requires the card to be played from hand. Only
4304
+ * its controller may use it, in the trigger's `form`. docs/phase7-wave3.md §3.20 and §4 Q6.
4305
+ */
4306
+ readonly playCostReduction?: {
4307
+ readonly amount: number;
4308
+ readonly cards?: TargetQuery;
4309
+ readonly fromHand?: boolean;
4310
+ };
4311
+ /**
4312
+ * `"hand"`: the ability works while its card is in its owner's hand, and only then — "While Pip the Troll is in your
4313
+ * hand, he gains 'Interrupt: When a player is attacked, spend [energy][mental] resources → put Pip the Troll into play
4314
+ * under that player's control.'" (Pip the Troll, `mts` 21032); "While this card is in your hand, it gains: 'Alter-Ego
4315
+ * Action: Spend a [mental] resource → remove this card from the game.'" (System Shock, 21185). Using it is not playing
4316
+ * the card: its owner pays the ability's own cost. docs/phase7-wave4.md §3.13.
4317
+ *
4318
+ * `"victoryDisplay"`: a constant ability that applies while its card is in the victory display, and only then ("While
4319
+ * this card is in the victory display, your identity gains the [X] trait and your hero gets +1 THW, +1 ATK and +1
4320
+ * DEF"; docs/phase7-wave7.md §3.50). RRG 1.8 "Victory Display" (p. 46): cards there "follow the standard rules for
4321
+ * out-of-play cards", and "In Play and Out of Play" (p. 23): an out-of-play card's ability affects the game only when
4322
+ * it "specifically refer[s] to being used from an out-of-play area". So the card's other abilities stay off there,
4323
+ * and this one is off in play and in every other area. Its modifiers, trait grants, keyword grants and the rules
4324
+ * `activeRules` reads are collected (`constantSources`, `constantAbilityRefs`); "you" is the card's owner
4325
+ * (`constantControllerOf`), and nothing is collected once that player is eliminated. Constants only: a triggered
4326
+ * ability or an action marked this way is never offered (the DSL's `validateDefinition` rejects one).
4327
+ *
4328
+ * `"discard"`: a response the card itself makes to its own discard from the top of its owner's deck, read from the
4329
+ * card where that discard left it ("Response: After this card is discarded from the top of your deck, add it to your
4330
+ * hand"; docs/phase7-wave7.md §3.55). The card "specifically refer[s] to being used from an out-of-play area" (RRG
4331
+ * 1.8 "In Play and Out of Play", p. 23), so this ability is on there and nowhere else: not in play, not in hand, and
4332
+ * not for a card that reached the discard pile any other way. Offered to the card's owner as its "you" (p. 31: "A
4333
+ * player controls the cards in their own out-of-play areas"), once per discard, in that discard's response window (`TriggerEvent cardDiscardedFromDeck`, `selfIs: "target"`), optional
4334
+ * unless printed Forced; it has no cost (nothing out of play pays one). Only such a response: the DSL's
4335
+ * `validateDefinition` rejects any other ability marked this way.
4336
+ *
4337
+ * `"tucked"`: a response the card itself makes to its own discard from under another card, read from the card where
4338
+ * that discard left it ("Forced Response: After a player card effect discards this card from under an identity,
4339
+ * that identity takes 2 damage"; docs/phase7-wave9.md §3.40 (b)). A tucked card is out of play (RRG 1.8 "Tuck",
4340
+ * p. 45), and this text "specifically refer[s] to being used from an out-of-play area" (RRG 1.8 "In Play and Out of
4341
+ * Play", p. 23), so the ability is on for a card that was tucked and nowhere else: not in play, not in hand, and not
4342
+ * for a card that reached a discard pile any other way. It answers `TriggerEvent tuckedCardDiscarded` with itself as
4343
+ * the target (`selfIs: "target"`), once per discard, in that discard's response window. "You" is the player its host
4344
+ * spoke to (the identity's controller; `tuckedCardDiscarded.playerId`), who resolves it; a host that speaks to no
4345
+ * player leaves a forced one to resolve with no "you". It has no cost (nothing out of play pays one). Only such a
4346
+ * response: the DSL's `validateDefinition` rejects any other ability marked this way.
4347
+ */
4348
+ readonly activeIn?: "hand" | "victoryDisplay" | "discard" | "tucked";
4349
+ /**
4350
+ * On a response to cards discarded from a deck (`cardDiscardedFromDeck`): the cards this ability takes away from
4351
+ * where their discard left them are still counted by the ability that discarded them. "Forced Response: After any
4352
+ * number of cards are discarded from the top of a player's deck, place those cards facedown under this scheme."
4353
+ * (Skrull Business, `cw` 56056; docs/phase7-wave10-box-heroes.md B3.3.) Without it a card a response took away is
4354
+ * dropped from the discarding ability's set of the cards "discarded this way" (docs/phase7-wave7.md §4.1 Q32);
4355
+ * with it that set and its totals stay as they were, so "for each different resource icon on the discarded cards"
4356
+ * and "if that card's printed resource has …" read the printed icons of the cards now under the scheme. Owner
4357
+ * decision, 2026-10-11, box-heroes question 14 = A (provisional); no ruling names these cards. Logged as
4358
+ * `deckDiscardStillCounted`.
4359
+ */
4360
+ readonly discardsStayCounted?: true;
4361
+ /**
4362
+ * "This effect cannot be canceled." on a "When Revealed" ability (the Cosmic Entities, `mts` 21042/21048/21054/21060:
4363
+ * "When Revealed: Deal 2 damage to the villain and remove this card from the game. This effect cannot be canceled.";
4364
+ * Longshot and Cornered!, `mojo` 39071, 39017): a cancel of the revealed card's effects or of its "When Revealed"
4365
+ * effects changes nothing (RRG 1.8 "Cancel" and "'Cannot'", p. 11). A card's own `RuleSpec cannotBeCanceled` does the
4366
+ * same while its `while` holds. docs/phase7-wave4.md §3.14.
4367
+ */
4368
+ readonly uncancellable?: true;
4369
+ /**
4370
+ * On a `whenRevealed` trigger: this ability is the card's attach instruction, not a printed When Revealed. "If
4371
+ * Stryfe's Grasp is in play, attach to Hope Summers. Otherwise, attach to your identity." (Mental Transferal,
4372
+ * `next_evol` 40169) is "attach to" text whose host depends on a condition, so it cannot be an
4373
+ * `AttachmentCard.attachesTo` data host. It resolves at the reveal's attach step (RRG 1.8 "Reveal", p. 38, step 2),
4374
+ * where a data host would be applied and before the card's When Revealed abilities, and its effects attach the card
4375
+ * (`attach` with `self`); "you" is the revealing player. Canceling the card's "When Revealed" effects does not stop
4376
+ * it, canceling all the card's effects does (RRG 1.8 "Cancel", p. 13), and a card it leaves unattached is handled as
4377
+ * one with no legal data host is (RRG 1.8 "Attach To", p. 8). It is never resolved as a When Revealed: not by a
4378
+ * reveal's When Revealed step, a "resolve its 'When Revealed' ability" effect or a repeat. An attachment has at most
4379
+ * one, and no `attachesTo`. docs/phase7-wave7.md §3.35.
4380
+ */
4381
+ readonly attachInstruction?: true;
4382
+ /**
4383
+ * This ability reads the resource types that paid for its card (docs/phase7-wave8.md §3.62): "X is the number of
4384
+ * different resource types … used to pay for this event" (`{ count: true }`), "If you paid for this card using 2
4385
+ * different resource types" (`{ atLeast: 2 }`), "If you paid for this event using at least 1: [physical] … [mental] …
4386
+ * [energy] …" (`{ types: ["physical", "mental", "energy"] }`).
4387
+ *
4388
+ * It marks the payment as one whose wilds the player declares (RRG 1.8 "Wild Resource", p. 48; ruling January 17, 2026
4389
+ * - Ruling 4 (1); §4.1 Q33 = B): the play command's `wildAs`, or the `declareWildTypes` choice. The engine never
4390
+ * chooses a declaration for the player. It skips the question only when every legal declaration gives every reader
4391
+ * of the payment the same reading, which is what this value is compared for. The reading itself is `ValueSpec
4392
+ * paidTypeCount` / `Predicate paidType` in the effects. A payment for a card that is not marked, and that no
4393
+ * `RuleSpec readsPaymentTypesOf` in force names, asks nothing and records no types.
4394
+ */
4395
+ readonly readsPaidTypes?: PaidTypesRead;
4396
+ }
4397
+ /** Ability definitions are engine-side data keyed by the `AbilityId` printed on cards. */
4398
+ export type AbilityRegistry = Readonly<Record<string, AbilityDefinition>>;
4399
+ export declare const NO_ABILITIES: AbilityRegistry;
4400
+ /**
4401
+ * Whether a registry defines any ability at all: false for `NO_ABILITIES`, the printed-characteristics-only reading.
4402
+ * Remembered per registry, since `traitsOf` and `keywordsOf` ask it on every read and a game's registry holds thousands
4403
+ * of abilities: `Object.keys` on it each time was most of a legal-move listing (issue #256, seconds per tap of Pay).
4404
+ */
4405
+ export declare function registryHasAbilities(registry: AbilityRegistry): boolean;
4406
+ export interface EngineDeps {
4407
+ readonly abilities: AbilityRegistry;
4408
+ }
4409
+ export declare const DEFAULT_DEPS: EngineDeps;
4410
+ /** One ability on one card, as found by the trigger matcher. */
4411
+ export interface AbilitySource {
4412
+ readonly instanceId: InstanceId;
4413
+ readonly abilityId: AbilityId;
4414
+ readonly controllerId: PlayerId | null;
4415
+ readonly definition: AbilityDefinition;
4416
+ }
4417
+ export declare const abilityUseKey: (instanceId: InstanceId, abilityId: AbilityId) => string;