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

feat(skymp5-server): add OnFireBlocked to ReadBookEvent for blocked book reading handling #2233

Merged
merged 5 commits into from
Dec 3, 2024

Conversation

Pospelove
Copy link
Contributor

@Pospelove Pospelove commented Nov 26, 2024

Important

Adds OnFireBlocked method to ReadBookEvent to handle blocked book reading events by removing spells.

  • Behavior:
    • Adds OnFireBlocked(WorldState* worldState) to ReadBookEvent in ReadBookEvent.cpp and ReadBookEvent.h.
    • OnFireBlocked checks if the book teaches a spell and removes the spell from the actor if true.
  • Misc:
    • Includes script_objects/EspmGameObject.h in ReadBookEvent.cpp.

This description was created by Ellipsis for 2a338e0. It will automatically update as commits are pushed.

@ellipsis-dev ellipsis-dev bot changed the title . feat: add OnFireBlocked to ReadBookEvent for blocked book reading handling Nov 26, 2024
@Pospelove Pospelove changed the title feat: add OnFireBlocked to ReadBookEvent for blocked book reading handling feat(skymp5-server): add OnFireBlocked to ReadBookEvent for blocked book reading handling Nov 26, 2024
Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to 2a338e0 in 41 seconds

More details
  • Looked at 53 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_2iDcaWy73OmfQL3Q


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

}

auto aSpell = VarValue(
std::make_shared<EspmGameObject>(br.LookupById(spellOrSkillFormId)));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable br is used but not declared or initialized. Ensure br is properly defined and initialized before use.

Pospelove and others added 4 commits November 27, 2024 01:30
@Pospelove Pospelove merged commit 9040b63 into skyrim-multiplayer:main Dec 3, 2024
10 checks passed
@Pospelove Pospelove deleted the readbook branch December 3, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant