-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix spells crashing when they can't find a target. (#36507)
* Enable translation * Change spell::random_valid_target to return an optional value. This handles the case when no target point can be found. Changed all callers accordingly to ignore the action when no target has been found. * Fix wrong word used to describe what's wrong. Remember: spell != skill. They sound similar, but they are not exactly the same. Thanks for the reminder. Co-Authored-By: Anton Burmistrov <Night_Pryanik@mail.ru>
- Loading branch information
1 parent
c886711
commit 311b795
Showing
3 changed files
with
23 additions
and
19 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
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
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