PersonaeReflection.lua 550 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Spells/Mage/Enchanter/Illusionist/PersonaeReflection.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.19 08:10:51
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Summons a pet Illusion Ally
  9. function cast(Caster, Target, PetID, MaxLevel)
  10. -- Summons a pet
  11. local pet = SummonPet(Caster, PetID, MaxLevel)
  12. if pet ~= nil then
  13. CopySpawnAppearance(pet, Caster)
  14. end
  15. end
  16. function remove(Caster, Target)
  17. pet = GetPet(Caster)
  18. if pet ~= nil then
  19. DismissPet(pet)
  20. end
  21. end