Stupefy.lua 613 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : Spells/Mage/Enchanter/Stupefy.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.03 11:11:49
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Decreases Threat to target by 590
  9. -- Stuns target
  10. -- If Target is not Epic
  11. -- Resistibility increases against targets higher than level 29.
  12. function cast(Caster, Target, Hate)
  13. Say(Caster, "Resistability not implemented.")
  14. if not IsEpic(Target) then
  15. AddControlEffect(Target, 4)
  16. end
  17. AddHate(Caster, Target, Hate, 1)
  18. end
  19. function remove(Caster, Target)
  20. RemoveControlEffect(Target, 4)
  21. end