TauntingSlap.lua 664 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/TauntingSlap.lua
  3. Script Author : LordPazuzu
  4. Script Date : 9/29/2023
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, MinVal, MaxVal)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 17
  11. Mastery = SpellLevel + 10
  12. StatBonus = GetStr(Caster) / 10
  13. if Level < Mastery then
  14. LvlBonus = Level - SpellLevel
  15. else LvlBonus = Mastery - SpellLevel
  16. end
  17. HateBonus = LvlBonus * 4
  18. MaxHate = MaxVal + HateBonus
  19. MinHate = MinVal + HateBonus
  20. AddHate(Caster, Target, math.random(MinHate,MaxHate),1)
  21. end