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

Remove random spells from Spell Scroll within Hero dialog and show message about Magic Book duplication #8666

Merged
merged 3 commits into from
May 17, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/fheroes2/resource/artifact.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************
* fheroes2: https://github.com/ihhub/fheroes2 *
* Copyright (C) 2019 - 2023 *
* Copyright (C) 2019 - 2024 *
* *
* Free Heroes2 Engine: http://sourceforge.net/projects/fheroes2 *
* Copyright (C) 2009 by Andrey Afletdinov <[email protected]> *
Expand Down Expand Up @@ -1195,7 +1195,7 @@ bool ArtifactsBar::ActionBarLeftMouseSingleClick( Artifact & art )
const_cast<Heroes *>( _hero )->SpellBookActivate();
}
else if ( art.GetID() == Artifact::SPELL_SCROLL ) {
const int spellId = Dialog::selectSpell( Spell::RANDOM, true ).GetID();
const int spellId = Dialog::selectSpell( Spell::RANDOM, false ).GetID();

if ( spellId == Spell::NONE ) {
// No spell for the Spell Scroll artifact was selected - cancel the artifact selection.
Expand Down
Loading