2026-10-01 · since v11 · download
The fight in progress and the combat schools, readable and usable by addons.
API edition 1.4 (was 1.2): an addon using the fight in progress declares "api_version": "1.3", one using the combat schools "1.4".
session:fight():opponent(), every opponent of the fight, with :current() the target, and each one’s initiative and give state.Opening objects from session:fight():opening() and opponent:opening().session:fight():action(), the ten-key combat row, with :cooldown() and each side’s :last() manoeuvre.action:use() (fight.use), opponent():set() to switch target (fight.set), :pursue() (fight.pursue) and :give() (fight.give).Opponent*, Opening*, ManeuverUsed and CombatActionChanged.BuffAdded, BuffChanged and BuffRemoved: listen to OpeningAdded, OpeningChanged and OpeningRemoved.session:fight():target(): use session:fight():opponent():current().session:fight():school(), the saved schools, with :current() the loaded one, and school:load() and school:save() under fight.load and fight.save.deck() lists every hotkey place, empty or not, and takes :get(n); card:index() is the hotkey number, and card:exists() is now card:empty().maneuver:dealable() → :max(), maneuver:used() and card:used() → :copies(), summary:used() → :spent().summary:activeSave(), :saveCount() and :deckSize(): use school():current(), school():count() and deck():count().