landsandboat/scripts/actions/abilities/life_cycle.lua
sruon f95c826beb Set pet job abilities to self-cast instead of pet targeted
These abilities are all defined as self-cast and have no range check associated with them.
The lua scripts are updated to correctly reflect that the pet is affected as a result of the ability.
2025-12-04 22:47:40 -07:00

22 lines
845 B
Lua

-----------------------------------
-- Ability: Life Cycle
-- Distributes one fourth of your HP to your luopan.
-- Obtained: Geomancer Level 50
-- Recast Time: 10 minutes
-- Grants your luopan 25% of your current HP.
-- The HP lost is not affected by gear or job points.
-- You also subsequently cannot kill yourself using this JA.
-- The increase in Life Cycle potency from Job points is applied in the same set as equipment bonuses.
-----------------------------------
---@type TAbility
local abilityObject = {}
abilityObject.onAbilityCheck = function(player, target, ability)
return xi.job_utils.geomancer.geoOnLifeCycleAbilityCheck(player, target, ability)
end
abilityObject.onUseAbility = function(player, target, ability, action)
return xi.job_utils.geomancer.lifeCycle(player, target, ability, action)
end
return abilityObject