CombatTreatment.lua 386 B

123456789101112131415161718
  1. --[[
  2. Script Name : Heal (Spell Type)
  3. Script Purpose : Generic script for healing spells
  4. Script Author : John Adams
  5. Script Date : 2008.12.03
  6. Script Note :
  7. --]]
  8. function cast(Caster, Target, HealType, HealMinVal, HealMaxVal)
  9. -- Heal Component
  10. if HealMinVal < HealMaxVal then
  11. ModifyHP(Caster, math.random(HealMinVal, HealMaxVal))
  12. else
  13. ModifyHP(Caster, HealMinVal)
  14. end
  15. end