2014-04-02 20:58:13 -04:00
|
|
|
-----------------------------------
|
|
|
|
|
-- Ability: Devotion
|
2015-04-24 16:13:06 +08:00
|
|
|
-- Sacrifices HP to grant a party member the same amount in MP.
|
|
|
|
|
-- Obtained: White Mage Level 75
|
|
|
|
|
-- Recast Time: 0:10:00
|
|
|
|
|
-- Duration: Instant
|
|
|
|
|
-- Target: Party member, cannot target self.
|
2014-04-02 20:58:13 -04:00
|
|
|
-----------------------------------
|
2024-08-25 10:24:42 -04:00
|
|
|
---@type TAbility
|
2022-10-06 17:14:01 +03:00
|
|
|
local abilityObject = {}
|
2014-04-02 20:58:13 -04:00
|
|
|
|
2022-10-06 17:14:01 +03:00
|
|
|
abilityObject.onAbilityCheck = function(player, target, ability)
|
2022-08-05 03:04:53 -06:00
|
|
|
return xi.job_utils.white_mage.checkDevotion(player, target, ability)
|
2018-08-07 19:36:44 -04:00
|
|
|
end
|
2014-04-02 20:58:13 -04:00
|
|
|
|
2026-01-28 11:24:42 -07:00
|
|
|
abilityObject.onUseAbility = function(player, target, ability, action)
|
|
|
|
|
return xi.job_utils.white_mage.useDevotion(player, target, ability, action)
|
2020-03-19 18:41:42 -07:00
|
|
|
end
|
2021-01-17 10:31:48 -05:00
|
|
|
|
2022-10-06 17:14:01 +03:00
|
|
|
return abilityObject
|