-
-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display spell name in dialog for spell casting error (#9415)
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/*************************************************************************** | ||
* fheroes2: https://github.com/ihhub/fheroes2 * | ||
* Copyright (C) 2019 - 2024 * | ||
* Copyright (C) 2019 - 2025 * | ||
* * | ||
* Free Heroes2 Engine: http://sourceforge.net/projects/fheroes2 * | ||
* Copyright (C) 2010 by Andrey Afletdinov <[email protected]> * | ||
|
@@ -6501,7 +6501,7 @@ void Battle::Interface::ProcessingHeroDialogResult( const int result, Actions & | |
assert( spell.isCombat() ); | ||
|
||
if ( arena.isDisableCastSpell( spell, &msg ) ) { | ||
fheroes2::showStandardTextMessage( "", msg, Dialog::OK ); | ||
fheroes2::showStandardTextMessage( spell.GetName(), msg, Dialog::OK ); | ||
} | ||
else { | ||
std::string error; | ||
|