No categories assigned

LUA:LastSpellAttackHit

Revision as of 23:01, 12 December 2013 by Thefoof (talk | contribs) (Created page with "= LUA Functions: LastSpellAttackHit() = Checks to see if the last SpellDamage() call in the spellscript hit successfully. ==== Syntax ==== LastSpellAttackHit() ==== Parameter...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: LastSpellAttackHit()

Checks to see if the last SpellDamage() call in the spellscript hit successfully.


Syntax

LastSpellAttackHit()


Parameters

None


Usage

function cast(Caster, Target)
    if LastSpellAttackHit() then
        Say(Caster, "last spelldamage successful")
    end
end

If the last spelldamage call in this spellscript hit successfully, the player will say, "last spelldamage successful".