mirror of
https://github.com/otland/forgottenserver
synced 2026-08-15 16:32:07 -04:00
* Move runes to dedicated folder * Redirect old XML and lib folder to new location * Drop unused custom spells
27 lines
673 B
Lua
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()
|