-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
AI: properly handle the Spell Book artifacts on the Adventure Map #8702
Conversation
There was a problem hiding this 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)
I am moving this to 1.1.1 release as it is dangerous to push changes just a day before the release. |
Hi @oleg-derevenetz , I've checked the code. Is it correct that now neither human nor AI hero can pickup Magic Book if they have one? |
Hi @ihhub
You see, in the |
@oleg-derevenetz , thank you so much for this change! |
close #8696
As far as I know, currently there is no way to place the Spell Book artifact inside an object other than
OBJ_ARTIFACT
(e.g. inside Shipwreck Survivor). If this is ever implemented in the Editor, it will be necessary to additionally redo the processing logic in a number of places: currently, if the hero's artifacts bag is full, when visiting such objects, hero receives money instead of the artifact, but he will not receive these money if his artifacts bag is not full, but he just already has a Spell Book.