ChannelSoul.lua 580 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : Spells/Priest/Shaper/Channeler/ChannelSoul.lua
  3. Script Author : neatz09
  4. Script Date : 2019.11.07 08:11:42
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- This effect cannot be cast during combat
  10. function precast(Caster)
  11. return not IsInCombat(Caster)
  12. end
  13. function cast(Caster, Target, ItemID)
  14. -- Summon 1 Channeling Vessel
  15. if IsPlayer(Target) and HasItem(Target, ItemID) then
  16. RemoveItem(Target, ItemID)
  17. end
  18. SummonItem(Target, ItemID)
  19. end