Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions Skillchains.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,24 @@ local aeonic_weapon = {
[22143] = 'Fomalhaut'
}

local weapon_bash_augment = S{
23181,
23516
}

local bags = {
'Inventory',
'Wardrobe',
'Wardrobe2',
'Wardrobe3',
'Wardrobe4',
'Wardrobe5',
'Wardrobe6',
'Wardrobe7',
'Wardrobe8'
}


initialize = function(text, settings)
if not windower.ffxi.get_info().logged_in then
return
Expand Down Expand Up @@ -221,6 +239,20 @@ function add_skills(t, abilities, active, resource, AM)
return t
end

-- check if the player has ig. gauntlets +2/3 equipped
-- probably cannot check other players?
function has_augmented_weapon_bash()
local hands = windower.ffxi.get_items('equipment').hands
for _, bag in ipairs(bags) do
local items = windower.ffxi.get_items(bag)
if weapon_bash_augment:contains(items[hands].id) then
return true
end
end

return false
end

function check_results(reson)
local t = {}
if settings.Show.spell[info.job] and info.job == 'SCH' then
Expand Down Expand Up @@ -370,6 +402,10 @@ function action_handler(act)
apply_properties(target.id, resource, action_id, aeonic_prop(ability, actor), ability.delay or 3, 1)
elseif message_id == 529 then
apply_properties(target.id, resource, action_id, chainbound[param], 2, 1, false, param)
elseif action_id == 77 and has_augmented_weapon_bash() then -- weapon bash
apply_properties(target.id, resource, action_id, chainbound[1], 2, 1, false, 1)
elseif action_id == 209 then -- wild flourish
apply_properties(target.id, resource, action_id, chainbound[1], 2, 1, false, 1)
elseif message_id == 100 and buff_dur[param] then
buffs[actor] = buffs[actor] or {}
buffs[actor][param] = buff_dur[param] + os.time()
Expand Down