Difference between revisions of "LUA:SpellHealPct"

(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...")
 
 
Line 18: Line 18:
 
<pre>
 
<pre>
 
function cast(Caster, Target)
 
function cast(Caster, Target)
     SpellHealPct(Heal, PctHeal, false, true, 1, true, "Generic Healz"
+
     SpellHealPct(Heal, PctHeal, false, true, 1, true, "Generic Healz")
 
end
 
end
 
</pre>
 
</pre>

Latest revision as of 12:43, 1 March 2021

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)