SpiritGuide.lua 498 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : Spells/Priest/Shaman/SpiritGuide.lua
  3. Script Author : neatz09
  4. Script Date : 2019.11.07 08:11:03
  5. Script Purpose :
  6. :
  7. --]]
  8. -- This effect cannot be cast during combat
  9. function precast(Caster)
  10. return not IsInCombat(Caster)
  11. end
  12. function cast(Caster, Target, ItemID)
  13. -- Summon 1 Spirit Guide
  14. if IsPlayer(Target) and HasItem(Target, ItemID) then
  15. RemoveItem(Target, ItemID)
  16. end
  17. SummonItem(Target, ItemID)
  18. end