Revive.lua 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : Spells/Priest/Revive.lua
  3. Script Author : theFoof
  4. Script Date : 2013.12.13
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target)
  9. -- Apply subspell for rez sickness when we support those
  10. -- Resurrects target with 15% health and power
  11. -- Applies Revived Sickness on termination. Lasts for 2 minutes.
  12. -- Decreases Toughness of target by 38.9
  13. -- Decreases Lethality of target by 38.9
  14. -- Decreases All Attributes of target by 20.0%
  15. -- If not between levels 1 - 6
  16. -- Decreases Attack Speed of target by 20.0
  17. -- If not between levels 1 - 6
  18. -- Decreases Attack Speed of target by 5.0
  19. -- If between levels 1 - 6
  20. -- Decreases All Attributes of target by 5.0%
  21. -- If between levels 1 - 6
  22. -- This effect cannot be cast during combat
  23. -- If outside an arena
  24. Resurrect(15, 15, 1)
  25. CancelSpell()
  26. end
  27. function remove(Caster, Target)
  28. end
  29. function precast(Caster, Target)
  30. if IsInCombat(Caster) then
  31. return false
  32. end
  33. return true
  34. end