Skip to content

Adventure map, maximum spell points after heroes' meeting with artifact exchange concerning the hero's knowledge #7520

@LeHerosInconnu

Description

@LeHerosInconnu

Preliminary checks

Platform

Windows

Describe the bug

During a meeting, when two heroes exchange artifacts that modify the maximum spell point total linked to the hero's knowledge, the maximum spell point total of the hero with a number greater than the new maximum total should be adjusted.
This is the case in the original game.

In the example, Ariel has 150 spell points corresponding to the maximum she can have with her knowledge of 15.
The Ultimate Book of Knowledge artifact gives her 12 of these 15 knowledge points.
When the Ultimate Book of Knowledge artifact is transferred to the hero Arie, Ariel's knowledge is reduced to 3 knowledge points.

At the end of the meeting, Ariel's spell points should therefore be reduced to 30 spell points, rather than remaining at 150 spell points.
But beware, this change in the number of spell points should only take effect just after the meeting window closes, so that the player can move artifacts from one hero to another several times if he changes his mind without losing the hero's spell points (there's a bug in the original game regarding this).
However, the hero spell points indicator bar (in the hero list) should be updated before returning to the adventure map screen after the meeting.

In the example, if Ariel goes to the Artesian Spring before the meeting, her spell points will increase to 300 spell points.
If during the meeting Ariel gives the Ultimate Book of Knowledge artifact to Arie, she will have 30 spell points after the meeting (the maximum she can have) and not 60 spell points.
If Ariel wants 60 spell points, she should visit the Artesian spring after giving the Ultimate Book of Knowledge artifact to Arie during the meeting.

In fheroes2:

2023-08-06.17-51-26.mp4

Save file

Here is the save file:
Max spell poin after meeting_.zip

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething doesn't work

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions