landsandboat/scripts/actions/abilities/martyr.lua
2026-01-28 13:02:11 -07:00

20 lines
634 B
Lua

-----------------------------------
-- Ability: Martyr
-- Sacrifices HP to heal a party member double the amount.
-- Obtained: White Mage Level 75
-- Recast Time: 0:10:00
-- Duration: Instant
-- Target: Party member, cannot target self.
-----------------------------------
---@type TAbility
local abilityObject = {}
abilityObject.onAbilityCheck = function(player, target, ability)
return xi.job_utils.white_mage.checkMartyr(player, target, ability)
end
abilityObject.onUseAbility = function(player, target, ability, action)
return xi.job_utils.white_mage.useMartyr(player, target, ability, action)
end
return abilityObject