SpellDisruptedEvent
A declared casting disrupted: the copy is lost as if it had been cast.
Full documentation: SpellDisruptedEvent. Wire type: spell_disrupted.
Default visibility: player
Message codes: magic.cast.disrupted
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 declared casting disrupted: the copy is lost as if it had been cast.\n\nEmitted by [`disrupt_casting`][osrlib.core.spells.disrupt_casting].",
"properties": {
"code": {
"default": "magic.cast.disrupted",
"title": "Code",
"type": "string"
},
"visibility": {
"$ref": "#/$defs/Visibility",
"default": "player"
},
"event_type": {
"const": "spell_disrupted",
"default": "spell_disrupted",
"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": "SpellDisruptedEvent",
"type": "object"
}