Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function job_post_precast(spell, action, spellMap, eventArgs)
- if spell.type == 'WeaponSkill' then
- if is_sc_element_today(spell) or is_sc_element_weather(spell) then
- equip({waist='Hachirin-no-Obi'})
- end
- end
- end
- -- Add the following down at the bottom of your main lua.
- function is_sc_element_today(spell)
- local weaponskill_elements = S{}:
- union(skillchain_elements[spell.skillchain_a]):
- union(skillchain_elements[spell.skillchain_b]):
- union(skillchain_elements[spell.skillchain_c])
- if weaponskill_elements:contains(world.day_element) then
- return true
- else
- return false
- end
- end
- function is_sc_element_weather(spell)
- local weaponskill_elements = S{}:
- union(skillchain_elements[spell.skillchain_a]):
- union(skillchain_elements[spell.skillchain_b]):
- union(skillchain_elements[spell.skillchain_c])
- if weaponskill_elements:contains(world.weather_element) then
- return true
- else
- return false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement