Mesmerize.lua 832 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Mage/Enchanter/Coercer/Mesmerize.lua
  3. Script Author : neatz09
  4. Script Date : 2020.05.08 10:05:53
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Mesmerizes target
  9. -- Prevents AOE (except when direct)
  10. -- Dispelled when target takes damage
  11. -- Epic targets gain an immunity to Mesmerize effects of 45.0 seconds and duration is reduced to 5.0 seconds.
  12. -- Resistibility increases against targets higher than level 29.
  13. function precast(Caster, Target)
  14. -- Does not affect Epic targets
  15. if IsEpic(Target) then
  16. return false, 43
  17. end
  18. return true
  19. end
  20. function cast(Caster, Target)
  21. Say(Caster, "Resistability not implemented")
  22. AddControlEffect(Target, 1)
  23. end
  24. function remove(Caster, Target)
  25. RemoveControlEffect(Target, 1)
  26. end