SpellDeclaredEvent
A spell declaration posted — table-visible per RAW.
Full documentation: SpellDeclaredEvent. Wire type: spell_declared.
Default visibility: player
Message codes: battle.spell.declared
JSON Schema
{
"$defs": {
"Visibility": {
"description": "Who may see an event.\n\nThe wire values are `\"player\"` and `\"referee\"` \u2014 lowercase, serialized into every\nevent; changing them is a `schema_version` bump.",
"enum": [
"player",
"referee"
],
"title": "Visibility",
"type": "string"
}
},
"description": "A spell declaration posted \u2014 table-visible per RAW.",
"properties": {
"code": {
"default": "battle.spell.declared",
"title": "Code",
"type": "string"
},
"visibility": {
"$ref": "#/$defs/Visibility",
"default": "player"
},
"event_type": {
"const": "spell_declared",
"default": "spell_declared",
"title": "Event Type",
"type": "string"
},
"caster_id": {
"title": "Caster Id",
"type": "string"
},
"spell_id": {
"title": "Spell Id",
"type": "string"
},
"reversed": {
"default": false,
"title": "Reversed",
"type": "boolean"
}
},
"required": [
"caster_id",
"spell_id"
],
"title": "SpellDeclaredEvent",
"type": "object"
}