landsandboat/scripts/actions/abilities/snake_eye.lua
2026-02-20 18:42:33 -07:00

21 lines
648 B
Lua

-----------------------------------
-- Ability: Snake Eye
-- Your next roll will automatically be a 1.
-- Obtained: Corsair Level 75
-- Recast Time: 0:05:00
-- Duration: 0:01:00 or the next usage of Phantom Roll or Double-Up
-----------------------------------
---@type TAbility
local abilityObject = {}
abilityObject.onAbilityCheck = function(player, target, ability)
return 0, 0
end
abilityObject.onUseAbility = function(player, target, ability)
player:addStatusEffect(xi.effect.SNAKE_EYE, { power = (player:getMerit(xi.merit.SNAKE_EYE) - 10), duration = 60, origin = player })
return xi.effect.SNAKE_EYE
end
return abilityObject