CurseofDarkness.lua 643 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Warlock/CurseofDarkness.lua
  3. Script Author : neatz09
  4. Script Date : 2020.09.17 02:09:02
  5. Script Purpose :
  6. :
  7. --]]
  8. -- On a hostile spell cast this spell will cast Curse of Darkness on target of spell.
  9. -- Inflicts 29 - 35 poison damage on target encounter
  10. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  11. AddProc(Target, 5, 100)
  12. end
  13. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal)
  14. if Type == 5 then
  15. SpellDamage(Target, DmgType, MinVal, MaxVal)
  16. end
  17. end
  18. function remove(Caster, Target)
  19. RemoveProc(Target)
  20. end