landsandboat/scripts/actions/weaponskills/seraph_strike.lua

33 lines
1.1 KiB
Lua

-----------------------------------
-- Seraph Strike
-- Club weapon skill
-- Skill level: 40
-- Deals light elemental damage to enemy. Damage varies with TP.
-- Aligned with the Thunder Gorget.
-- Aligned with the Thunder Belt.
-- Element: None
-- Modifiers: STR:40% MND:40%
-- 100%TP 200%TP 300%TP
-- 2.125 3.675 6.125
-----------------------------------
---@type TWeaponSkill
local weaponskillObject = {}
weaponskillObject.onUseWeaponSkill = function(player, target, wsID, tp, primary, action, taChar)
local params = {}
params.ftpMod = { 1.0, 2.0, 3.0 }
params.str_wsc = 0.3 params.mnd_wsc = 0.3
params.ele = xi.element.LIGHT
params.skill = xi.skill.CLUB
params.includemab = true
if xi.settings.main.USE_ADOULIN_WEAPON_SKILL_CHANGES then
params.ftpMod = { 2.125, 3.675, 6.125 }
params.str_wsc = 0.4 params.mnd_wsc = 0.4
end
local damage, criticalHit, tpHits, extraHits = xi.weaponskills.doMagicWeaponskill(player, target, wsID, params, tp, action, primary)
return tpHits, extraHits, criticalHit, damage
end
return weaponskillObject