9
3

FrigidGiftSub.lua 811 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Commoner/FrigidGiftSub.lua
  3. Script Author : neatz09
  4. Script Date : 2021.01.09 03:01:37
  5. Script Purpose : Subspell for Frigid Gift
  6. :
  7. --]]
  8. -- Inflicts 54 - 67 cold damage on target
  9. -- Slows target by 33.3%
  10. -- 5% chance to dispel when target receives hostile action
  11. -- 5% chance to dispel when target takes damage
  12. function cast(Caster, Target, Dmg, Min, Max, SlowMod)
  13. SpellDamage(Target, Dmg, Min, Max)
  14. SetSpeedMultiplier(Target, SlowMod)
  15. AddProc(Target, 15, 5)
  16. AddProc(Target, 1, 5)
  17. end
  18. function proc(Caster, Target, Type, Dmg, Min, Max, SlowMod)
  19. if Type == 15 or Type == 1 then
  20. CancelSpell()
  21. end
  22. end
  23. function remove(Caster, Target)
  24. SetSpeedMultiplier(Target, 1)
  25. RemoveProc(Target)
  26. end