Historical signature: HasSpellEffect(spawn, spellID, tier)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Function: HasSpellEffect(spawn, spellID, tier)
Description:
Return's true if the spawn has an active spell effect with the spellid and tier specified. If tier is set to 0 all tiers apply.
Parameters:
spawn (Spawn) - Spawn object representing spawn.
spellID (uint32) - Integer value spellID.
tier (uint8) - Integer value tier.
Returns: True if spell effect is active on the spawn with spellid and tier (if tier is 0 then all tiers apply). 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 HasSpellEffect(Player, 5459, 1) then
Evidence: server/ItemScripts/aCourierCostume.lua:14; binding EQ2Emu_lua_HasSpellEffect.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.