Thornskin.lua 812 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Priest/Druid/Fury/Thornskin.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.01.14 02:01:48
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target)
  9. -- When damaged with a melee weapon this spell will cast Thornstorm on target's attacker.
  10. AddProc(Target, 4, 100)
  11. end
  12. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal)
  13. if Type == 4 then
  14. -- Inflicts 1 piercing damage on target encounter
  15. if MaxVal ~= nil and MinVal < MaxVal then
  16. ProcDamage(Caster, Target, "Thornstorm", DmgType, MinVal, MaxVal)
  17. else
  18. ProcDamage(Caster, Target, "Thornstorm", DmgType, MinVal)
  19. end
  20. end
  21. end
  22. function remove(Caster, Target)
  23. RemoveProc(Target)
  24. end