[Messages] Fix multiple errors in spell damage at death. #4264
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This fixes a few errors in messages that appeared, or were missing at the time of a death to spell damage.
Type of change
Testing
Before and after examples:
1 Before:
[Wed Apr 10 09:42:59 2024] Noudess hit a skeletal monk for 117 points of non-melee damage.
[Wed Apr 10 09:42:59 2024] You strike a skeletal monk for 117 points of damage.
[Wed Apr 10 09:42:59 2024] You have slain a skeletal monk!
1 After:
[Wed Apr 10 20:27:05 2024] Noudess hit dry bone skeleton for 117 points of non-melee damage.
[Wed Apr 10 20:27:05 2024] Dry bone skeleton has been poisoned.
[Wed Apr 10 20:27:05 2024] You have slain dry bone skeleton!
2 Before:
[Tue Apr 16 10:34:33 2024] Nowdess hit a skeleton for 81 points of non-melee damage.
[Tue Apr 16 10:34:33 2024] You have slain a skeleton!
2 After:
[Tue Apr 16 10:53:13 2024] Nowdess hit a skeleton for 81 points of non-melee damage.
[Tue Apr 16 10:53:13 2024] A skeleton has been poisoned.
[Tue Apr 16 10:53:13 2024] You have slain a skeleton!
3 Before:
[Tue Apr 16 11:14:18 2024] Nowdess hit Bear for 6 points of non-melee damage.
[Tue Apr 16 11:14:18 2024] Nowdess has defeated Bear in a duel to the death!
[Tue Apr 16 11:14:18 2024] Bear has been poisoned.
[Tue Apr 16 11:14:18 2024] Your Poison Bolt spell has worn off of Bear.
[Tue Apr 16 11:14:18 2024] You have slain Bear!
3 After:
[Tue Apr 16 11:05:20 2024] Nowdess hit a skeleton for 10 points of non-melee damage.
[Tue Apr 16 11:05:20 2024] Your Poison Bolt spell has worn off of a skeleton.
[Tue Apr 16 11:05:20 2024] You have slain a skeleton!
Clients tested: RoF2
Checklist