9
3

DivineAwakening.lua 466 B

12345678910111213141516171819
  1. --[[
  2. Script Name : Spells/Priest/Cleric/DivineAwakening.lua
  3. Script Author : neatz09
  4. Script Date : 2020.01.02 05:01:36
  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. if IsPlayer(Target) and HasItem(Target, ItemID) then
  14. RemoveItem(Target, ItemID)
  15. end
  16. SummonItem(Target, ItemID)
  17. end