9
3

Invisibility.lua 602 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Mage/Invisibility.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.26 02:10:58
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- Grants invisibility to target
  10. -- Suspends target's movement speed enhancements
  11. -- Dispelled when target takes damage
  12. -- This effect cancels during combat
  13. function precast(Caster)
  14. return not IsInCombat(Caster)
  15. end
  16. function cast(Caster, Target)
  17. Stealth(2, Target)
  18. end
  19. function remove(Caster, Target)
  20. RemoveInvis(2,Target)
  21. end