WindsofPermafrost.lua 835 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Priest/Druid/Warden/WindsofPermafrost.lua
  3. Script Author : neatz09
  4. Script Date : 2019.09.11 03:09:22
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 226 - 276 cold damage on target encounter
  9. function cast(Caster, Target, DmgType, MinVal, MaxVal, DebuffAmt)
  10. if MaxVal ~= nil and MinVal < MaxVal then
  11. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  12. else
  13. SpellDamage(Target, DmgType, MinVal)
  14. end
  15. -- Decreases Piercing, Slashing and Crushing of target encounter by 8.6
  16. AddSkillBonus(Target, GetSkillIDByName("Crushing"), DebuffAmt)
  17. AddSkillBonus(Target, GetSkillIDByName("Piercing"), DebuffAmt)
  18. AddSkillBonus(Target, GetSkillIDByName("Slashing"), DebuffAmt)
  19. end
  20. function remove(Caster, Target)
  21. RemoveSkillBonus(Target)
  22. end