GraveSacrament.lua 1.2 KB

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Shadowknight/GraveSacrament.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.09 04:10:47
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- Increases threat priority of targets in Area of Effect by 2 positions---NOT SCRIPTED
  10. -- Increases Threat to targets in Area of Effect by 284 - 347 instantly and every 4 seconds thereafter
  11. -- Inflicts 5 - 8 disease damage on targets in Area of Effect
  12. -- Inflicts 3 - 4 disease damage on targets in Area of Effect every 4 seconds
  13. function cast(Caster, Target, HateMin, HateMax, DmgType, MinVal, MaxVal, DotType, DotMin, DotMax, ToTMin, ToTMax)
  14. if HateMax ~= nil and HateMin < HateMax then
  15. AddHate(Caster, Target, math.random(HateMin, HateMax), 1)
  16. else
  17. AddHate(Caster, Target, HateMin, 1)
  18. end
  19. SpellDamage(Target, HateMin, HateMax, DmgType, MinVal, MaxVal)
  20. end
  21. function tick(Caster, Target, HateMin, HateMax, DoTType, DotMin, DotMax)
  22. if ToTMax ~= nil and ToTMin < ToTMax then
  23. AddHate(Caster, Target, math.random(ToTMin, ToTMax), 1)
  24. else
  25. AddHate(Caster, Target, ToTMin, 1)
  26. end
  27. SpellDamage(Target, DoTType, DotMin, DotMax)
  28. end