DisarmingGrin.lua 718 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Swashbuckler/DisarmingGrin.lua
  3. Script Author : neatz09
  4. Script Date : 2019.11.07 08:11:52
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Mesmerizes target
  9. -- Prevents AOE (except when direct)
  10. -- Dispelled when target takes damage
  11. -- Resistibility increases against targets higher than level 29.
  12. function precast(Caster, Target)
  13. -- Does not affect Epic targets
  14. if IsEpic(Target) then
  15. return false, 43
  16. end
  17. return true
  18. end
  19. function cast(Caster, Target)
  20. Say(Caster, "Resistability not implemented")
  21. AddControlEffect(Target, 1)
  22. end
  23. function remove(Caster, Target)
  24. RemoveControlEffect(Target, 1)
  25. end