9
3

FrigidGift.lua 995 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Wizard/FrigidGift.lua
  3. Script Author : neatz09
  4. Script Date : 2020.09.05 09:09:36
  5. Script Purpose :
  6. :
  7. --]]
  8. -- On a hostile spell cast this spell will cast Ice Lash on target of spell. Lasts for 6.0 seconds.
  9. -- Inflicts 54 - 67 cold damage on target
  10. -- Slows target by 33.3%
  11. -- 5% chance to dispel when target receives hostile action
  12. -- 5% chance to dispel when target takes damage
  13. function cast(Caster, Target, DmgType, MinVal, MaxVal, SlowAmt)
  14. AddProc(Target, 5, 100)
  15. end
  16. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal, SlowAmt)
  17. Spell = GetSpell(5461, GetSpellTier())
  18. local Slow = 100 - SlowAmt
  19. if Type == 5 then
  20. SetSpellDataIndex(Spell, 0, RegHeal)
  21. SetSpellDataIndex(Spell, 1, ModHeal)
  22. SetSpellDataIndex(Spell, 2, Slow)
  23. CastCustomSpell(Spell, Caster, Target)
  24. end
  25. end
  26. function remove(Caster, Target)
  27. RemoveProc(Target)
  28. end