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

21 lines
669 B
Lua

-----------------------------------
-- Ability: Grand Pas
-- Description: Allows flourishes to be performed without finishing moves.
-- Obtained: DNC Level 96
-- Recast Time: 01:00:00
-- Duration: 00:00:30
-----------------------------------
---@type TAbility
local abilityObject = {}
abilityObject.onAbilityCheck = function(player, target, ability)
ability:setRecast(math.max(0, ability:getRecast() - player:getMod(xi.mod.ONE_HOUR_RECAST) * 60))
return 0, 0
end
abilityObject.onUseAbility = function(player, target, ability)
target:addStatusEffect(xi.effect.GRAND_PAS, { power = 19, duration = 30, origin = player, tick = 1 })
end
return abilityObject