- summary: Casts one of the played fighter's spells on a map cell during its turn.
- area: Game.Game.Action
Casts one of the played fighter's spells on a map cell during its turn.
Kind request · Area Game.Game.Action
Casts a spell of the fighter you play on a map CELL. Use GameActionFightCastOnTargetRequest
instead to cast on a fighter by its id.
HOW TO SEND IT
1. Only during your own turn, in a fight. 2. spell_id = the spell's data-centre id (the spell template id, NOT a spell level id and NOT the action-bar slot). The official client reads it straight off the spell's data record. 3. cell = the target cell id, 0 to 559. The official client refuses anything outside the 560-cell map before building the request, and only sends a cell its fight preview considers castable (range, line of sight, free cell rules). 4. Nothing else is written. One request per cast.
WHAT COMES BACK
The server plays the cast as an action sequence: a sequence start, the fight action
events (damage, effects, deaths ...), and a sequence end. Answer each finished
sequence with GameActionAcknowledgementRequest; the official client does it after
playing the sequence back.
A CELL, NOT A FIGHTER. Casting on the cell a fighter stands on works for spells that target cells, but the client itself uses the on-target request when the player clicks a fighter (or casts on itself).
When you may send it
- Requires
context_readyinferred - Raised by: the player casts a spell on a map cell: a spell selected in the action bar, then a click on a cell the fight preview accepts (cell id inside the 560-cell map, spell castable there) proven
Related messages
- Reply not yet recovered: The server answers with the fight action sequence of the cast (a sequence start, the action events, a sequence end) and the client acknowledges it with
GameActionAcknowledgementRequest. A refused cast is reported by a no-cast event that has no signature yet.
Fields
| # | Field | Type | Meaning | You set it |
|---|---|---|---|---|
| 1 | spell_id | int32 | The spell to cast: its data-centre spell id. (spell id) Proven as the member the client fills from the spell record's id (a getter returning the Spell data id). | required |
| 2 | cell | int32 | The map cell the spell is cast on. (cell id) Range: 0 to 559 Proven as the int32 the caller hands to the cast service (the other member is computed from the spell); the caller checks it against the 560-cell map first. | required |