pub fn refresh_law_attributes(
entity: &mut Entity,
previous_side: WorldSide,
active_side: WorldSide,
previous_charges: &LawBridgeCharges,
game_config: &GameConfig,
)Expand description
Recomputes the active side’s law contribution and moves the entity’s attributes from the previous contribution to the new one. Called on a flip, which changes both halves at once: which side is up AND how much charge each law just received.
Entity-local from end to end: both the before and the after picture come out of the combatant’s own snapshot, which is what makes this correct for ANY combatant — the hero, the party ally and a PvP opponent alike.