9
3

SkeletalGrasp.lua 975 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Warlock/SkeletalGrasp.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.14 11:10:35
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Roots target encounter
  9. -- 15% chance to dispel when target takes damage
  10. -- Does not affect Epic targets
  11. -- Resistibility increases against targets higher than level 29.
  12. function precast(Caster, Target)
  13. -- Does not affect Epic targets
  14. if IsEpic(Target) then
  15. return false, 43
  16. end
  17. return true
  18. end
  19. function cast(Caster, Target, Chance)
  20. Say(Caster, "Resist level 29 or < not implemented.")
  21. AddControlEffect(Target, 5)
  22. AddProc(Target, 15, Chance)
  23. end
  24. function proc(Caster, Target, Type, Chance)
  25. local Spell = GetSpellID()
  26. if Type == 15 and HasSpellEffect(Target, Spell) then
  27. RemoveControlEffect(Target, 5)
  28. end
  29. end
  30. function remove(Caster, Target)
  31. RemoveControlEffect(Target, 5)
  32. RemoveProc(Target)
  33. end