Function: SpellHealPct(heal_type, percentage, current_value, caster_value, target, crit_mod, no_calcs, custom_spell_name)
Description: Heal or Increase Power percentage of a Target inside of a spell script. heal_type is "heal" or "power".
Parameters:
heal_type(string) - String valueheal_type.percentage(int32) - Integer valuepercentage.current_value(int32) - Integer valuecurrent_value.caster_value(int32) - Integer valuecaster_value.target(Spawn) - Spawn object representingtarget.crit_mod(int32) - Integer valuecrit_mod.no_calcs(int32) - Integer valueno_calcs.custom_spell_name(string) - Stringcustom_spell_name.
Returns: None.
Spell caster lifetime: When this function reads a spell's caster, it retains that allocation for the native operation. Retirement or callback reentry cannot replace its caster with a different allocation at the same address or runtime ID. A known expired or cleared caster is not rediscovered through a replacement connection. An actor already owned by the active callback remains usable through that callback. See Lua actor lifetime.
Original spell targets: When this function uses a spell's target list, it snapshots references to the originally selected actor allocations. It skips unavailable or departed targets instead of selecting another actor with a reused runtime ID. Accepted actors remain physically retained through the active protected callback, including Lua errors; saved userdata and target records do not keep them alive between callbacks. Explicit Spawn arguments retain their existing selection behavior. See Lua actor lifetime.