Lua functions

LastSpellAttackHit

Registered in this checkout as EQ2Emu_lua_LastSpellAttackHit; implementation found at WorldServer/Lua/LuaFunctions.cpp:9818.

Historical signature: LastSpellAttackHit()

Parameter and behavior details in the historical explanation are under review against the current implementation.

Function: LastSpellAttackHit()

Description: Return's true if the last spell attack was a successful hit.

Parameters: None.

Returns: True if the last hit was successful otherwise false.

Checked example

Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. This is a contextual call pattern, not a tested standalone script.

if LastSpellAttackHit(Target) then

Evidence: server/Spells/Scout/Bard/SparklingBlade.lua:26; binding EQ2Emu_lua_LastSpellAttackHit.

Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.