Imprecate.lua 713 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Spells/Priest/Shaman/Defiler/Imprecate.lua
  3. Script Author : John Adams
  4. Script Date : 2013.11.19 09:11:21
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, BuffAmt, DmgType, MinDmg, MaxDmg)
  9. -- Decreases Mitigation of target vs noxious damage by 21
  10. AddSpellBonus(Target, 202, BuffAmt)
  11. -- Inflicts 10 - 13 disease damage on target
  12. if MaxDmg ~= nil and MinDmg < MaxDmg then
  13. SpellDamage(Target, DmgType, math.random(MinDmg, MaxDmg))
  14. else
  15. SpellDamage(Target, DmgType, MinDmg)
  16. end
  17. end
  18. function remove(Caster, Target, BuffAmt, DmgType, MinDmg, MaxDmg)
  19. RemoveSpellBonus(Target)
  20. end