CloseMind.lua 889 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/Bruiser/CloseMind.lua
  3. Script Author : neatz09
  4. Script Date : 2020.03.01 03:03:39
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target)
  9. -- Makes caster immune to Root effects
  10. AddImmunitySpell(5, Target)
  11. -- Makes caster immune to Stun effects
  12. AddImmunitySpell(4, Target)
  13. -- Makes caster immune to Stifle effects
  14. AddImmunitySpell(2, Target)
  15. -- Makes caster immune to Fear effects
  16. AddImmunitySpell(6, Target)
  17. -- Makes caster immune to Daze effects
  18. AddImmunitySpell(3, Target)
  19. -- Makes caster immune to Mesmerize effects
  20. AddImmunitySpell(1, Target)
  21. end
  22. function remove(Caster, Target)
  23. RemoveImmunitySpell(1, Target)
  24. RemoveImmunitySpell(2, Target)
  25. RemoveImmunitySpell(3, Target)
  26. RemoveImmunitySpell(4, Target)
  27. RemoveImmunitySpell(5, Target)
  28. RemoveImmunitySpell(6, Target)
  29. end