Difference between revisions of "LUA:GetWardAmountLeft"

(Created page with "= LUA Functions: GetWardAmountLeft() = Gets the amount left on the ward ==== Syntax ==== GetWardAmountLeft() ==== Usage ==== <pre> function remove(Caster, Target) local he...")
 
(No difference)

Latest revision as of 23:05, 13 December 2013

LUA Functions: GetWardAmountLeft()

Gets the amount left on the ward

Syntax

GetWardAmountLeft()


Usage

function remove(Caster, Target)
    local heal = GetWardAmountLeft()
    RemoveWard()
    if heal > 0 then
        SpellHeal("Heal", heal)
    end
end

When this spell fades it will take the remaining amount of the ward and turn it into a heal

Notes

Can only be used in spell scripts