CrystallizeSoul.lua 687 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Priest/Shaman/Defiler/CrystallizeSoul.lua
  3. Script Author : neatz09
  4. Script Date : 2020.01.27 09:01:54
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- On a kill this spell has a 30% chance to cast Crystallize Soul on caster.
  10. -- Summon 1 Distilled Soul (Apprentice)
  11. function cast(Caster, Target, Type, ItemID)
  12. AddProc(Target, 14, 30)
  13. end
  14. function proc(Caster, Target, Type, ItemID)
  15. if HasItem(Caster, ItemID, 1) then
  16. RemoveItem(Caster, ItemID)
  17. end
  18. SummonItem(Caster, ItemID, 1)
  19. end
  20. function remove(Caster, Target)
  21. RemoveProc(Target)
  22. end