I know this may be redundant. But is there textbook code for Corsair weather check / obi ?
It seems to work on BLM; I'm just swapping types for COR.
Sorry if this is posted. This is what i'm working with.
function job_post_midcast(spell, action, spellMap, eventArgs)
if spell.type == 'WeaponSkill' then
if spell.element == world.day_element or spell.element == world.weather_element then
equip(sets.precast.WS['Leaden Salute'], {waist="Hachirin-no-Obi"})
end
end
if spell.skill == 'CorsairShot' then
if spell.element == world.day_element or spell.element == world.weather_element then
equip(sets.midcast.CorsairShot, {waist="Hachirin-no-Obi"})
end
end