No categories assigned

LUA:SpellHealPct

Revision as of 12:43, 1 March 2021 by Neatz09 (talk | contribs) (Created page with "= LUA Functions: SpellHealPct() = a variant to SpellHeal() that uses a percent instead of a fixed value ==== Syntax ==== SpellHealPct(heal_type, percentage, current_value, c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)