23 lines
667 B
Lua
23 lines
667 B
Lua
-----------------------------------
|
|
-- Ability: Swipe
|
|
-- Expends a single rune to deal damage to a target.
|
|
-- Obtained: Rune Fencer Level 25
|
|
-- Recast Time: 1:30
|
|
-- Duration: Instant
|
|
-----------------------------------
|
|
---@type TAbility
|
|
local abilityObject = {}
|
|
|
|
abilityObject.onAbilityCheck = function(player, target, ability)
|
|
if player:getAnimation() ~= 1 then
|
|
return xi.msg.basic.REQUIRES_COMBAT, 0
|
|
end
|
|
|
|
return xi.job_utils.rune_fencer.checkHaveRunes(player)
|
|
end
|
|
|
|
abilityObject.onUseAbility = function(player, target, ability, action)
|
|
return xi.job_utils.rune_fencer.useSwipeLunge(player, target, ability, action)
|
|
end
|
|
|
|
return abilityObject
|