Inflame.lua 919 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Inflame.lua
  3. Script Author : LordPazuzu
  4. Script Date : 3/17/2023
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Increases Threat to target by 651 - 977 instantly and by 130 - 195 every 3 seconds thereafter
  9. function cast(Caster, Target, MinVal, MaxVal, TickMin, TickMax)
  10. Level = GetLevel(Caster)
  11. SpellLevel = 18
  12. Mastery = SpellLevel + 10
  13. if Level < Mastery then
  14. LvlBonus = Level - SpellLevel
  15. else LvlBonus = Mastery - SpellLevel
  16. end
  17. MinHate = LvlBonus * 2 + MinVal
  18. MaxHate = LvlBonus * 2 + MaxVal
  19. AddHate(Caster, Target, math.random(MinHate, MaxHate), 1)
  20. end
  21. function tick(Caster, Target, TickMin, TickMax, LvlBonus)
  22. MinTick = LvlBonus * 2 + TickMin
  23. MaxTick = LvlBonus * 2 + TickMax
  24. AddHate(Caster, Target, math.random(MinTick, MaxTick), 1)
  25. end