forgottenserver/data/scripts/spells/support/challenge.lua
Ranieri Althoff 25df9cfd38
Move spells to scripts folder (#4755)
* Move runes to dedicated folder
* Redirect old XML and lib folder to new location
* Drop unused custom spells
2024-09-20 00:13:59 +02:00

27 lines
673 B
Lua

local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setArea(createCombatArea(AREA_SQUARE1X1))
function onTargetCreature(creature, target)
return doChallengeCreature(creature, target)
end
combat:setCallback(CALLBACK_PARAM_TARGETCREATURE, "onTargetCreature")
local spell = Spell(SPELL_INSTANT)
function spell.onCastSpell(creature, variant)
return combat:execute(creature, variant)
end
spell:group("support")
spell:id(93)
spell:name("Challenge")
spell:words("exeta res")
spell:level(20)
spell:mana(40)
spell:isAggressive(false)
spell:cooldown(2000)
spell:groupCooldown(2000)
spell:vocation("elite knight;true")
spell:register()