Clarion.lua 633 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Paladin/Clarion.lua
  3. Script Author : Dello
  4. Script Date : 19/07/2014
  5. Script Purpose :
  6. --]]
  7. function cast(Caster, Target, MinVal, MaxVal)
  8. if MaxVal ~= nil and MinVal < MaxVal then
  9. AddHate(Caster, Target, math.random(MinVal, MaxVal), 1)
  10. else
  11. AddHate(Caster, Target, MinVal, 1)
  12. end
  13. end
  14. function tick(Caster, Target, MinVal, MaxVal, MinVal, MaxVal)
  15. if MaxVal ~= nil and MinVal < MaxVal then
  16. AddHate(Caster, Target, math.random(MinVal, MaxVal), 1)
  17. else
  18. AddHate(Caster, Target, MinVal, 1)
  19. end
  20. end