19 lines
569 B
Lua
19 lines
569 B
Lua
-----------------------------------
|
|
-- Ability: Stay
|
|
-- Commands the Pet to stay in one place.
|
|
-- Obtained: Beastmaster Level 15
|
|
-- Recast Time: 5 seconds
|
|
-- Duration: Instant
|
|
-----------------------------------
|
|
---@type TAbility
|
|
local abilityObject = {}
|
|
|
|
abilityObject.onAbilityCheck = function(player, target, ability)
|
|
return xi.job_utils.beastmaster.checkPetCommand(player, target, ability)
|
|
end
|
|
|
|
abilityObject.onUseAbility = function(player, target, ability, action)
|
|
return xi.job_utils.beastmaster.useStay(player, target, ability)
|
|
end
|
|
|
|
return abilityObject
|