Lullaby.lua 748 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Scout/Bard/Troubador/Lullaby.lua
  3. Script Author : neatz09
  4. Script Date : 2020.02.12 06:02:33
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Mesmerizes target
  9. -- Prevents AOE (except when direct)
  10. -- Dispelled when target takes damage
  11. -- Does not affect Epic targets
  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