Inflame.lua 752 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Inflame.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.05 04:11:16
  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. if MaxVal ~= nil and MinVal < MaxVal then
  11. AddHate(Caster, Target, math.random(MaxVal, MinVal), 1)
  12. else
  13. AddHate(Caster, Target, MinVal, 1)
  14. end
  15. end
  16. function tick(Caster, Target)
  17. if TickMax ~= nil and TickMin < TickMax then
  18. AddHate(Caster, Target, math.random(TickMax, TickMin), 1)
  19. else
  20. AddHate(Caster, Target, TickMin, 1)
  21. end
  22. end