Escape.lua 534 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Spells/Scout/Escape.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.12 09:10:56
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Teleports caster and caster's group within the zone
  9. function precast(Caster, Target)
  10. if(GetCanEvac(Caster) == 1)
  11. then
  12. return true
  13. else
  14. SendMessage(Caster, "You cannot use evacuate spells in this zone.", "red")
  15. return false
  16. end
  17. return true
  18. end
  19. function cast(Caster, Target)
  20. Evac()
  21. end