No categories assigned

LUA:GetWardAmountLeft

Revision as of 23:05, 13 December 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: GetWardAmountLeft() = Gets the amount left on the ward ==== Syntax ==== GetWardAmountLeft() ==== Usage ==== <pre> function remove(Caster, Target) local he...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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