Lua functions

IsHeroic

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

Historical signature: IsHeroic(spawn)

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

Function: IsHeroic(spawn)

Description: Return's true if Spawn is heroic.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: True if Spawn is heroic 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 not IsHeroic(Target) then

Evidence: server/Spells/Scout/CheapShot.lua:18; binding EQ2Emu_lua_IsHeroic.

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