AuraofVoid.lua 846 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Warlock/AuraofVoid.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.12 04:10:34
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Grants a total of 3 triggers of the spell.
  9. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  10. AddProc(Target, 1, 100)
  11. -- Grants a total of 3 triggers of the spell.
  12. SetSpellTriggerCount(3, 1)
  13. end
  14. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal)
  15. -- When damaged with a spell this spell will cast Aura of Pain on target.
  16. if Type == 1 then
  17. -- Inflicts 125 - 152 disease damage on target
  18. ProcDamage(Caster, Target, "Aura of Pain", DmgType, MinVal, MaxVal)
  19. RemoveTriggerFromSpell(1)
  20. end
  21. end
  22. function remove(Caster, Target)
  23. RemoveProc(Target)
  24. end