Porcupine.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : Spells/Priest/Druid/Fury/Porcupine.lua
  3. Script Author : neatz09
  4. Script Date : 2020.03.01 10:03:04
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Increases Max Health of raid and group members (AE) by 58.5
  9. -- Increases Mitigation of raid and group members (AE) vs all damage by 1260
  10. -- When any damage is received this spell will cast Porcupine Quills on target's attacker, which can be triggered up to 50 times across all targets.
  11. -- Inflicts 121 divine damage on target
  12. function cast(Caster, Target, Health, Mit, DmgType, Dmg)
  13. AddSpellBonus(Target, 606, Health)
  14. AddSpellBonus(Target, 200, Mit)
  15. AddSpellBonus(Target, 201, Mit)
  16. AddSpellBonus(Target, 202, Mit)
  17. AddSpellBonus(Target, 203, Mit)
  18. AddProc(Target, 15, 100, nil, 1)
  19. SetSpellTriggerCount(50, 0)
  20. end
  21. function proc(Caster, Target, Type, Health, Mit, DmgType, Dmg)
  22. if Type == 15 then
  23. RemoveTriggerFromSpell()
  24. ProcDamage(Caster, Target, "Porcupine Quills", DmgType, Dmg)
  25. end
  26. end
  27. function remove(Caster, Target)
  28. RemoveSpellBonus(Target)
  29. RemoveProc(Target)
  30. end