NaturalRegeneration.lua 486 B

123456789101112131415161718
  1. --[[
  2. Script Name : Spells/Commoner/NaturalRegeneration.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.05.11 03:05:24
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target)
  9. CurrentRegen = GetInfoStructSInt(Caster, "hp_regen")
  10. AddSpellBonus(Caster, 600, math.ceil(CurrentRegen * 0.05))
  11. AddSpellBonus(Caster, 0, 3)
  12. AddSpellBonus(Caster, 1, 3)
  13. end
  14. function remove(Caster, Target)
  15. RemoveSpellBonus()
  16. end