878 B
878 B
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.
Example:
-- From Spells/Commoner/HateSpores.lua
function cast(Caster, Target, Pwr)
SpellHealPct("Power", Pwr, false, true, Target)
end