- summary: The caster and a target fighter swap places.
- area: Game.Action
The caster and a target fighter swap places.
Kind struct · Area Game.Action
One step of a fight action (GameActionFightEvent): two fighters exchange their cells.
READ IT LIKE THIS
1. The caster is the action's GameActionFightEvent.source_id; ExchangePositions.target_id is the
other fighter.
2. Put the caster on ExchangePositions.caster_cell_id and the target on
ExchangePositions.target_cell_id. Do not assume they are each other's old cells.
3. SEND NOTHING BACK.
Not sent on its own — it travels inside GameActionFightEvent.exchange_positions. proven
Used by
Fields
| # | Field | Type | Meaning | You set it |
|---|---|---|---|---|
| 1 | target_id | int64 | The fighter the caster swaps places with. (fighter (entity) id) | never |
| 2 | caster_cell_id | int32 | The cell the caster ends on. (map cell id) | never |
| 3 | target_cell_id | int32 | The cell the target ends on. (map cell id) | never |