No categories assigned

LUA:SpellHealPct

LUA Functions: SpellHealPct()

a variant to SpellHeal() that uses a percent instead of a fixed value


Syntax

SpellHealPct(heal_type, percentage, current_value, caster_value, target, crit_mod, no_calc, custom_spell_name)

Parameters

Usage

function cast(Caster, Target)
    SpellHealPct(Heal, PctHeal, false, true, 1, true, "Generic Healz")
end

Notes

special changes different from SpellHeal:

   heal_type = string, "power" / "heal" no longer case sensitive (same with SpellHeal)
   percentage = float, must be > 0.0f
   current_value = bool, true (GetHP/GetPower) false (GetTotalHP/GetTotalPower)
   caster_value = bool, true (Caster HP/Power) false (Target HP/Power)