9
3

BindWound.lua 649 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : Spells/Traits/BindWound.lua
  3. Script Author : neatz09
  4. Script Date : 2020.12.17 04:12:10
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Heals caster for 25.0% of max health
  9. -- This effect cannot be critically applied.
  10. -- This effect cannot be cast during combat
  11. -- Must not be engaged in combat
  12. function cast(Caster, Target, Modifier)
  13. CurrHealth = GetHP(Caster)
  14. MaxHealth = GetMaxHP(Caster)
  15. if IsInCombat(Caster) then
  16. -- Do Nothing
  17. elseif CurrHealth < MaxHealth then
  18. healAmount = MaxHealth * Modifier
  19. ModifyHP(Caster, healAmount)
  20. end
  21. end