- summary: One spell modifier now applies to a fighter: add it to that fighter's modifiers.
- area: Game.Spell
One spell modifier now applies to a fighter: add it to that fighter's modifiers.
Kind event · Area Game.Spell
Adds ONE modifier to ONE fighter. It is a change, not the whole list
(FightControlEvent.spell_modifiers replaces the whole list).
WHAT TO DO WHEN YOU RECEIVE IT
1. FIND the modifiers of the fighter ApplySpellModifierEvent.actor_id.
Start an empty set if the fighter has none yet.
2. FIND the entry for the modifier's spell and modifier type (see
SpellModifier). Create it when it is missing.
3. SET that entry's values for the modifier's action type. Leave the entry's
other action types and the fighter's other entries as they are.
4. SEND NOTHING BACK.
RemoveSpellModifierEvent undoes step 3 for one action type.
When you may send it
- Requires
character_loadedinferred
Related messages
- Unsolicited - nothing you send causes this inferred — the server sends it when an effect starts modifying a fighter's spell; no request asks for it
Fields
| # | Field | Type | Meaning | You set it |
|---|---|---|---|---|
| 1 | modifier | SpellModifier | The modifier to add: which spell, which property of it, how, and by how much. Element type SpellModifier. | never |
| 2 | actor_id | int64 | The fighter whose spell modifiers change. (entity id) Observed: 783278080291 | never |