Difference between revisions of "LUA:LastSpellAttackHit"
(Created page with "= LUA Functions: LastSpellAttackHit() = Checks to see if the last SpellDamage() call in the spellscript hit successfully. ==== Syntax ==== LastSpellAttackHit() ==== Parameter...") |
(No difference)
|
Latest revision as of 23:01, 12 December 2013
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".