BindWound.lua 504 B

123456789101112131415161718
  1. --[[
  2. Script Name : Spells\Traditions\Noncombat\BindWound.lua
  3. Script Purpose :
  4. Script Author : Zcoretri
  5. Script Date : 2013.01.28
  6. Script Notes : Heals for 2% of max health while out of combat
  7. --]]
  8. function cast(Caster, Target, Modifier)
  9. CurrHealth = GetHP(Caster)
  10. MaxHealth = GetMaxHP(Caster)
  11. if IsInCombat(Caster) then
  12. -- Do Nothing
  13. elseif CurrHealth < MaxHealth then
  14. healAmount = MaxHealth * Modifier
  15. ModifyHP(Caster, healAmount)
  16. end
  17. end