9
3

DevourVitae.lua 705 B

1234567891011121314151617
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Shadowknight/DevourVitae.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.12 08:10:36
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- Inflicts 97 - 119 disease damage on target
  10. function cast(Caster, Target, DmgType, MinVal, MaxVal, pctHealMin, pctHealMax)
  11. SpellDamage(Target, DmgType, MinVal, MaxVal)
  12. -- Heals caster for 3.4 - 4.2% of max health
  13. -- This effect cannot be critically applied.
  14. -- The healing of this spell cannot be modified except by direct means
  15. SpellHeal("Heal", GetPCTOfHP(Caster, pctHealMin), GetPCTOfHP(Caster, pctHealMax), Caster, 2)
  16. end