Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Fix] Fix event_consider any_cast error #4210

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

xackery
Copy link
Contributor

@xackery xackery commented Mar 27, 2024

if you put into global_player.lua the code:

---@param e PlayerEventConsider
function event_consider(e)
end

you get the error:
Zone | QuestError | AddError Lua Exception | [event_consider] for Player in [global_player:] bad any_cast -- [neriakb] (Neriak - Commons) inst_id [0]

Investigating, this seems to be due to a mob to npc cast.

From my testing, this PR repairs this issue.

@xackery xackery changed the title Fix consider casting Fix event_consider any_cast error Mar 27, 2024
@Kinglykrab Kinglykrab changed the title Fix event_consider any_cast error [Bug Fix] Fix event_consider any_cast error Mar 27, 2024
@Kinglykrab Kinglykrab merged commit 4692799 into EQEmu:master Mar 27, 2024
1 check passed
@xackery xackery deleted the xackery/consider branch March 27, 2024 19:49
MortimerGreenwald pushed a commit to MortimerGreenwald/Server that referenced this pull request Apr 15, 2024
@Akkadius Akkadius mentioned this pull request Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants