Find the combat this actor actually has a combatant in, independent of game.combat.
game.combat is not "the combat this actor is in" — it proxies through
CombatTracker's sidebar-rendered "viewed combat" UI state, which can drift (e.g. a GM
viewing a different encounter's tracker tab) or transiently go null regardless of which
combat is actually running the actor's turn. Outcomes that need to act on "the combat this
actor is participating in" should resolve it here rather than reading game.combat directly.
Searches all combats in the world for one containing a combatant for this actor, preferring
an active combat over an inactive one if the actor happens to have combatants in more than
one (e.g. a stale/ended encounter left un-deleted).
Parameters
actor: Actor
Returns any
The actor's combat, or null if the actor isn't in any tracked combat.
Find the combat this actor actually has a combatant in, independent of
game.combat.game.combatis not "the combat this actor is in" — it proxies throughCombatTracker's sidebar-rendered "viewed combat" UI state, which can drift (e.g. a GM viewing a different encounter's tracker tab) or transiently gonullregardless of which combat is actually running the actor's turn. Outcomes that need to act on "the combat this actor is participating in" should resolve it here rather than readinggame.combatdirectly.Searches all combats in the world for one containing a combatant for this actor, preferring an active combat over an inactive one if the actor happens to have combatants in more than one (e.g. a stale/ended encounter left un-deleted).