TayilsSearingOrb.lua 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : Spells/TayilsSearingOrb.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.05.16 03:05:04
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, MinVal, MaxVal, Debuff)
  9. damage(Caster, Target, MinVal, MaxVal)
  10. AddSpellBonus(Target, 201, Debuff)
  11. AddSpellBonus(Target, 202, Debuff)
  12. AddSpellBonus(Target, 203, Debuff)
  13. end
  14. function tick(Caster, Target, MinVal, MaxVal)
  15. damage(Caster, Target, MinVal, MaxVal)
  16. end
  17. function remove(Caster, Target, DoTType, MinVal, MaxVal)
  18. RemoveSpellBonus()
  19. end
  20. function damage(Caster, Target, MinVal, MaxVal)
  21. Level = GetLevel(Caster)
  22. SpellLevel = 10
  23. Mastery = SpellLevel + 10
  24. StatBonus = GetInt(Caster) / 10
  25. if Level < Mastery then
  26. LvlBonus = Level - SpellLevel
  27. else LvlBonus = Mastery - SpellLevel
  28. end
  29. DmgBonus = LvlBonus + StatBonus
  30. MaxDmg = MaxVal + math.floor(DmgBonus)
  31. MinDmg = MinVal + math.floor(DmgBonus)
  32. SpellDamage(Target, 3, MinDmg, MaxDmg)
  33. end