22 lines
664 B
Lua
22 lines
664 B
Lua
-----------------------------------
|
|
-- Ability: Random Deal
|
|
-- Has the possibility of resetting the reuse time of a job ability for each party member within area of effect.
|
|
-- Obtained: Corsair Level 50
|
|
-- Recast Time: 0:20:00
|
|
-- Duration: Instant
|
|
-----------------------------------
|
|
---@type TAbility
|
|
local abilityObject = {}
|
|
|
|
abilityObject.onAbilityCheck = function(player, target, ability)
|
|
return 0, 0
|
|
end
|
|
|
|
abilityObject.onUseAbility = function(caster, target, ability, action)
|
|
ability:setMsg(xi.msg.basic.JA_RECEIVES_EFFECT_3)
|
|
if not caster:doRandomDeal(target) then
|
|
ability:setMsg(xi.msg.basic.JA_MISS_2)
|
|
end
|
|
end
|
|
|
|
return abilityObject
|