landsandboat/scripts/actions/abilities/embolden.lua
2026-02-20 18:42:33 -07:00

19 lines
655 B
Lua

-----------------------------------
-- Ability: Embolden
-- Enhances the effects of the next enhancing magic spell you cast, but reduces effect duration.
-- Obtained: Rune Fencer Level 60
-- Recast Time: 10:00
-- Duration: 1:00 or first absorb
-----------------------------------
---@type TAbility
local abilityObject = {}
abilityObject.onAbilityCheck = function(player, target, ability)
return 0, 0
end
abilityObject.onUseAbility = function(player, target, ability, action)
target:addStatusEffect(xi.effect.EMBOLDEN, { duration = 60, origin = player }) -- effects handled in scripts/globals/spells/spell_enhancing.lua
end
return abilityObject