12345678910111213141516171819202122232425262728 |
- --[[
- Script Name : Spells/Scout/CheapShot.lua
- Script Author : Jabantiz
- Script Date : 2013.12.16 03:12:31
- Script Purpose :
- :
- --]]
- function precast(Caster, Target)
- -- Does not affect Epic targets
- return (not IsEpic(Target)), 43
- end
- function cast(Caster, Target)
- -- Applies Cheap Shot on termination. Lasts for 2.0 seconds.
- -- Stuns target
- -- Does not affect Heroic or Epic targets.
- if not IsHeroic(Target) then
- AddControlEffect(Target, 4)
- SpawnSet(Target,"visual_state",1684)
- end
- end
- function remove(Caster, Target)
- -- Remove Mez Effect
- RemoveControlEffect(Target, 4)
- SpawnSet(Target,"visual_state",0)
- end
|