CheapShot.lua 657 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Scout/CheapShot.lua
  3. Script Author : Jabantiz
  4. Script Date : 2013.12.16 03:12:31
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster, Target)
  9. -- Does not affect Epic targets
  10. return (not IsEpic(Target)), 43
  11. end
  12. function cast(Caster, Target)
  13. -- Applies Cheap Shot on termination. Lasts for 2.0 seconds.
  14. -- Stuns target
  15. -- Does not affect Heroic or Epic targets.
  16. if not IsHeroic(Target) then
  17. AddControlEffect(Target, 4)
  18. end
  19. end
  20. function remove(Caster, Target)
  21. -- Remove Mez Effect
  22. RemoveControlEffect(Target, 4)
  23. end