Nettleshield.lua 639 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : Spells/Priest/Druid/Nettleshield.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.05 02:11:35
  5. Script Purpose :
  6. :
  7. --]]
  8. -- When damaged with a melee weapon this spell will cast Nettleshield Thorns on target's attacker.
  9. -- Inflicts 3 piercing damage on target
  10. function cast(Caster, Target, DmgType, MinVal)
  11. AddProc(Target, 16, 100)
  12. end
  13. function proc(Caster, Target, Type, DmgType, MinVal)
  14. if Type == 16 then
  15. ProcDamage(Caster, Target, "Nettleshield Thorns", DmgType, MinVal)
  16. end
  17. end
  18. function remove(Caster, Target)
  19. RemoveProc(Target)
  20. end