Impact Record Spell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".buff.ImpactRecordSpell"

Targeting:

This spell can be cast by/on all living entities.

Description:

While active, the spell saves the internal spell name of spells that the entity gets targeted by in a string variable.

Buff Uses:

Buff spell Uses increment whenever the entity is targeted.

Configuration:

Option Description Type Default
variable-name String
record-cancelled Defines whether the spell should record cancelled spells too. Boolean false
filter Spell Filter config section

Example:

variables:
    recordedSpell:
        type: playerstring

record:
    spell-class: ".buff.ImpactRecordSpell"
    duration: 100
    variable-name: recordedSpell
    filter:
        denied-spell-tags:
            - NotRecordable