pub fn combatant_character_state<'a>(
character_state: &'a CharacterState,
party: &'a Party,
pvp_state: &'a Option<PVPState>,
fight: &ActiveFight,
entity_id: EntityId,
) -> Option<&'a CharacterState>Expand description
The durable CharacterState behind combatant entity_id in this session’s
fight — the local hero’s, the party ally’s, or a human PvP opponent’s.
None for mobs and for arena filler bots, which have no CharacterState.
Takes the sibling OverlordState fields separately so a caller can keep
borrowing active_fight mutably while the returned build is alive.