19 lines
708 B
Lua
19 lines
708 B
Lua
-----------------------------------
|
|
-- Ability: Cutting Cards
|
|
-- Description: Reduces the recast times of other party members' special abilities. The degree to which they are reduced is determined by the number rolled.
|
|
-- Obtained: COR Level 96
|
|
-- Recast Time: 01:00:00
|
|
-----------------------------------
|
|
---@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(caster, target, ability, action)
|
|
xi.job_utils.corsair.useCuttingCards(caster, target, ability, action)
|
|
end
|
|
|
|
return abilityObject
|