9
3

Mindbend.lua 993 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : Spells/Mage/Enchanter/Coercer/Mindbend.lua
  3. Script Author : neatz09
  4. Script Date : 2020.02.13 05:02:44
  5. Script Purpose :
  6. :
  7. --]]
  8. -- On any combat or spell hit this spell will cast Disorientation on target. Lasts for 4.0 seconds.
  9. -- Stuns target
  10. -- If Target is not Epic
  11. -- Grants a total of 3 triggers of the spell.
  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, Triggers)
  20. Say(Caster, "Procs need work")
  21. SetSpellTriggerCount(Triggers, 1)
  22. AddProc(Target, 16, 100)
  23. AddProc(Target, 17, 100)
  24. end
  25. function proc(Caster, Target, Type, Triggers)
  26. Tier = GetSpellTier()
  27. if Type == 16 or Type == 17 then
  28. CastSpell(Target, 5443, Tier, Caster)
  29. RemoveTriggerFromSpell()
  30. end
  31. end
  32. function remove(Caster, Target)
  33. RemoveProc(Target)
  34. end