Lua functions

ClearSpellVisualState

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

Historical signature: ClearSpellVisualState(…) via current binding

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

Function: ClearSpellVisualState(target)

Description:

Clears the visual state override owned by the current spell on the target entity.

Parameters:

  • target (Spawn) - Entity whose override should be cleared.

Returns: Boolean: true when the stored state changed; false for invalid arguments, missing spell or no change.

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.

ClearSpellVisualState(Target)

Evidence: server/Spells/ClassicRefresh/Fighter/Warrior/Berserker/BerserkersFury-2553714.lua:28; binding EQ2Emu_lua_ClearSpellVisualState.

Current registration: WorldServer/Lua/LuaInterface.cpp.