Pin.lua 783 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : Spells/Commoner/Pin.lua
  3. Script Author : neatz09
  4. Script Date : 2020.10.28 03:10:23
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Roots target
  9. -- 5% chance to dispel when target takes damage
  10. -- 5% chance to dispel when target receives hostile action
  11. -- Epic targets gain an immunity to Root and Ability attacks will hit for their maximum damage.
  12. --effects of 30.0 seconds and duration is reduced to 3.3 seconds.
  13. function cast(Caster, Target)
  14. AddControlEffect(Target, 5)
  15. AddProc(Target, 1)
  16. Say(Caster, "Epic Immunity not implemented.")
  17. end
  18. function proc(Caster, Target)
  19. if type == 1 then
  20. CancelSpell()
  21. end
  22. end
  23. function remove(Caster, Target)
  24. RemoveControlEffect(Target, 5)
  25. end