StunningBlow.lua 728 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Brigand/StunningBlow.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.15 09:10:24
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  9. SpellDamage(Target, DmgType, MinVal, MaxVal)
  10. -- Inflicts 116 - 194 melee damage on target
  11. -- Stuns target
  12. -- If Target is not Epic
  13. -- Resistibility increases against targets higher than level 29.
  14. -- Stuns target
  15. -- If Target is not Epic
  16. -- Resistibility increases against targets higher than level 29.
  17. if not IsEpic(Target) then
  18. AddControlEffect(Target, 4)
  19. end
  20. end
  21. function remove(Caster, Target)
  22. RemoveControlEffect(Target, 4)
  23. end