Skip to content

EffectReleasedEvent

An effect explicitly released before expiry (referee bookkeeping).

Full documentation: EffectReleasedEvent. Wire type: effect_released.

Default visibility: referee

Message codes: effects.effect.released

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": "An effect explicitly released before expiry (referee bookkeeping).\n\nEmitted by [`EffectsLedger.release`][osrlib.core.effects.EffectsLedger.release] \u2014 a\n*dispel magic* or a charm's passed re-save, for example.",
  "properties": {
    "code": {
      "default": "effects.effect.released",
      "title": "Code",
      "type": "string"
    },
    "visibility": {
      "$ref": "#/$defs/Visibility",
      "default": "referee"
    },
    "event_type": {
      "const": "effect_released",
      "default": "effect_released",
      "title": "Event Type",
      "type": "string"
    },
    "effect_id": {
      "title": "Effect Id",
      "type": "string"
    },
    "kind": {
      "title": "Kind",
      "type": "string"
    },
    "target_ref": {
      "title": "Target Ref",
      "type": "string"
    }
  },
  "required": [
    "effect_id",
    "kind",
    "target_ref"
  ],
  "title": "EffectReleasedEvent",
  "type": "object"
}