Accord.lua 879 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Accord.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.11.27 10:11:59
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, PowerProc, SpellLevel)
  9. AddProc(Target, 15, 10)
  10. end
  11. function proc(Caster, Target, Type, PowerProc, SpellLevel)
  12. Level = GetLevel(Caster)
  13. Mastery = SpellLevel + 10
  14. StatBonus = GetInt(Caster) / 10
  15. if Level < Mastery then
  16. LvlBonus = Level - SpellLevel
  17. else LvlBonus = Mastery - SpellLevel
  18. end
  19. PowMod = LvlBonus * 2 + StatBonus
  20. PowBonus = PowerProc + math.floor(PowMod)
  21. Spell = GetSpell(5499, 1)
  22. if Type == 15 then
  23. SetSpellDataIndex(Spell, 0, PowBonus)
  24. CastCustomSpell(Spell, Caster, Target)
  25. end
  26. end
  27. function remove(Caster, Target)
  28. RemoveProc(Target)
  29. end