Skip to content

MagicDispelledEvent

A dispel magic resolved: which effects were released and which survived.

Full documentation: MagicDispelledEvent. Wire type: magic_dispelled.

Default visibility: player

Message codes: magic.dispel.resolved

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 *dispel magic* resolved: which effects were released and which survived.\n\nEmitted by [`cast_spell`][osrlib.core.spells.cast_spell] when a *dispel\nmagic*-kind spell resolves.",
  "properties": {
    "code": {
      "default": "magic.dispel.resolved",
      "title": "Code",
      "type": "string"
    },
    "visibility": {
      "$ref": "#/$defs/Visibility",
      "default": "player"
    },
    "event_type": {
      "const": "magic_dispelled",
      "default": "magic_dispelled",
      "title": "Event Type",
      "type": "string"
    },
    "caster_id": {
      "title": "Caster Id",
      "type": "string"
    },
    "released_effect_ids": {
      "default": [],
      "items": {
        "type": "string"
      },
      "title": "Released Effect Ids",
      "type": "array"
    },
    "surviving_effect_ids": {
      "default": [],
      "items": {
        "type": "string"
      },
      "title": "Surviving Effect Ids",
      "type": "array"
    }
  },
  "required": [
    "caster_id"
  ],
  "title": "MagicDispelledEvent",
  "type": "object"
}