Fascinate.lua 959 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : Spells/Mage/Enchanter/Fascinate.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.11.26 09:11:36
  5. Script Purpose :
  6. :
  7. --]]
  8. --[[ Info from spell_display_effects (remove from script when done)
  9. *Stuns target
  10. *Prevents AOE (except when direct)
  11. *Dispelled when target takes damage
  12. *Does not affect Epic targets
  13. *Resistibility increases against targets higher than level 29.
  14. --]]
  15. function precast(Caster, Target)
  16. -- Does not affect Epic targets
  17. if IsEpic(Target) then
  18. return false, 43
  19. end
  20. return true
  21. end
  22. function cast(Caster, Target)
  23. Say(Caster, "Resistability not implemented")
  24. AddControlEffect(Target, 1)
  25. AddProc(Target, 2, 100.0)
  26. end
  27. function proc(Caster, Target, Type)
  28. if type == 2 then
  29. CancelSpell()
  30. end
  31. end
  32. function remove(Caster, Target)
  33. RemoveControlEffect(Target, 1)
  34. end