landsandboat/scripts/actions/abilities/gambit.lua
2025-11-12 08:13:17 -07:00

19 lines
654 B
Lua

-----------------------------------
-- Ability: Gambit
-- Expends all runes harbored to reduce an enemy's elemental defense. The types of elemental defense reduced depend on the runes you harbor.
-- Obtained: Rune Fencer level 70
-- Recast Time: 5:00
-- Duration: 1:00
-----------------------------------
---@type TAbility
local abilityObject = {}
abilityObject.onAbilityCheck = function(player, target, ability)
return xi.job_utils.rune_fencer.checkHaveRunes(player)
end
abilityObject.onUseAbility = function(player, target, ability, action)
return xi.job_utils.rune_fencer.useGambit(player, target, ability, action)
end
return abilityObject