Roar Spell - MomoPewpew/MagicSpells GitHub Wiki

Source Code

spell-class: ".instant.RoarSpell"

Description:

Instant Spell that forces nearby enemies to attack you.

Configuration:

Option Description Default Value
radius Radius of the spell. 8
str-no-target Message sent to the caster when there are no targets. "No targets found."
cancel-if-no-targets Whether the spell should be cancelled when there are no targets. true

Example:

roar:
    spell-class: ".instant.RoarSpell"
    name: roar
    description: Forces nearby enemies to attack you.
    cast-item: book
    cooldown: 15
    radius: 8
    can-target: monsters
    cost:
        - mana 10
    str-cost: 10 mana
    str-cast-self: "You roar, causing nearby enemies to attack you."
    str-cast-others: "%a roars loudly!"