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
830 B
Lua
27 lines
830 B
Lua
local combat = Combat()
|
|
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
|
|
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
|
|
|
|
local condition = Condition(CONDITION_HASTE)
|
|
condition:setParameter(CONDITION_PARAM_TICKS, 33000)
|
|
condition:setFormula(0.3, -24, 0.3, -24)
|
|
combat:addCondition(condition)
|
|
|
|
local spell = Spell(SPELL_INSTANT)
|
|
|
|
function spell.onCastSpell(creature, variant)
|
|
return combat:execute(creature, variant)
|
|
end
|
|
|
|
spell:group("support")
|
|
spell:id(6)
|
|
spell:name("Haste")
|
|
spell:words("utani hur")
|
|
spell:level(14)
|
|
spell:mana(60)
|
|
spell:isAggressive(false)
|
|
spell:isSelfTarget(true)
|
|
spell:cooldown(2000)
|
|
spell:groupCooldown(2000)
|
|
spell:vocation("sorcerer;true", "druid;true", "paladin;true", "knight;true", "master sorcerer;true", "elder druid;true", "royal paladin;true", "elite knight;true")
|
|
spell:register()
|