ShroudofBertoxxulous.lua 809 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Warlock/ShroudofBertoxxulous.lua
  3. Script Author : neatz09
  4. Script Date : 2020.09.17 02:09:14
  5. Script Purpose :
  6. :
  7. --]]
  8. -- When damaged this spell has a 25% chance to cast Nihilistics on target's attacker.
  9. -- Inflicts 39 - 47 poison damage on target encounter
  10. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  11. AddProc(Target, 15, 25)
  12. end
  13. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal)
  14. Spell = GetSpell(5437, GetSpellTier())
  15. if Type == 15 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