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

Fix multiple spellbook-related issues in the Battle Only mode #8160

Merged
merged 3 commits into from
Dec 24, 2023

Conversation

oleg-derevenetz
Copy link
Collaborator

@oleg-derevenetz oleg-derevenetz commented Dec 22, 2023

Currently in the master branch:

fheroes2.engine.version_.1.0.10.2023-12-22.19-12-03.mp4

With this PR:

fheroes2.engine.version_.1.0.10.2023-12-22.19-15-48.mp4

Another problem that this PR is intended to fix is that when removing the spell book through the UI, the list of spells that the hero knows has not actually been cleared. Also in the master branch, for the purposes of evaluating heroes and their armies by the AI, spells from scrolls were taken into account even if the hero did not have a spell book (and he could not actually use these scrolls).

@oleg-derevenetz oleg-derevenetz marked this pull request as draft December 22, 2023 15:46
@oleg-derevenetz oleg-derevenetz added bug Something doesn't work ui UI/GUI related stuff logic Things related to game logic labels Dec 22, 2023
@oleg-derevenetz oleg-derevenetz added this to the 1.1.0 milestone Dec 22, 2023
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

@oleg-derevenetz oleg-derevenetz marked this pull request as ready for review December 23, 2023 10:47
@ihhub ihhub merged commit 78fde8c into ihhub:master Dec 24, 2023
@ihhub
Copy link
Owner

ihhub commented Dec 24, 2023

@oleg-derevenetz , thanks a lot for this fix!

@oleg-derevenetz oleg-derevenetz deleted the battle-only-spell-book branch December 24, 2023 08:31
Kazhuu pushed a commit to Kazhuu/fheroes2 that referenced this pull request Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something doesn't work logic Things related to game logic ui UI/GUI related stuff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants