CallServant.lua 550 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : Spells/Mage/CallServant.lua
  3. Script Author : neatz09
  4. Script Date : 2020.05.17 10:05:37
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- Teleports target to caster
  10. function cast(Caster, Target)
  11. local pet = GetPet(Caster)
  12. if pet ~= nil then
  13. local x = GetX(pet)
  14. local y = GetY(pet)
  15. local z = GetZ(pet)
  16. SpawnSet(pet, "x", GetX(Caster))
  17. SpawnSet(pet, "y", GetY(Caster))
  18. SpawnSet(pet, "z", GetZ(Caster))
  19. end
  20. end