Advertisement
Guest User

User-Globals

a guest
Jul 28th, 2016
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.03 KB | None | 0 0
  1. sets.reive = {neck="Arciela's Grace +1"}
  2.  
  3. function user_post_precast(spell, action, spellMap, eventArgs)
  4.     -- reive mark
  5.     if spell.type:lower() == 'weaponskill' then
  6.         if buffactive['Reive Mark'] then
  7.             equip(sets.reive)
  8.         end
  9.     end
  10. end
  11.  
  12. function user_customize_melee_set(meleeSet)
  13.     if buffactive['Reive Mark'] then
  14.         meleeSet = set_combine(meleeSet, sets.reive)
  15.     end
  16.     return meleeSet
  17. end
  18.  
  19. function user_customize_idle_set(idleSet)
  20.     if buffactive['Reive Mark'] then
  21.         idleSet = set_combine(idleSet, sets.reive)
  22.     end
  23.     return idleSet
  24. end
  25.  
  26. function is_sc_element_today(spell)
  27.     if spell.type ~= 'WeaponSkill' then
  28.         return
  29.     end
  30.  
  31.    local weaponskill_elements = S{}:
  32.     union(skillchain_elements[spell.skillchain_a]):
  33.     union(skillchain_elements[spell.skillchain_b]):
  34.     union(skillchain_elements[spell.skillchain_c])
  35.  
  36.     if weaponskill_elements:contains(world.day_element) then
  37.         return true
  38.     else
  39.         return false
  40.     end
  41.  
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement