GiftofBertoxxulous.lua 767 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Warlock/GiftofBertoxxulous.lua
  3. Script Author : neatz09
  4. Script Date : 2020.04.19 03:04:43
  5. Script Purpose :
  6. :
  7. --]]
  8. -- On a hostile spell cast this spell will cast Abhorrence on target of spell.
  9. -- Inflicts 12 - 22 poison damage on target encounter
  10. function cast(Caster, Target)
  11. AddProc(Target, 5, 100)
  12. end
  13. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal)
  14. Spell = GetSpell(5439, GetSpellTier())
  15. if Type == 5 then
  16. SetSpellDataIndex(Spell, 0, DmgType)
  17. SetSpellDataIndex(Spell, 1, MinVal)
  18. SetSpellDataIndex(Spell, 2, MaxVal)
  19. CastCustomSpell(Spell, Caster, Target)
  20. end
  21. end
  22. function remove(Caster, Target)
  23. RemoveProc(Target)
  24. end