Solved a bug which caused part of the creature to not be properly sca… #188
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.
…led in case the group in the instance is formed by only one character, since the number of players before and after is always one
Changes Proposed:
if (prevAdjustedPlayerCount == mapABInfo->adjustedPlayerCount)
is always true, since it will be solved as 1 = 1.This cause an unforced map update, that results in a missing update of already scaled creatures using the LFG average level. For low level instances this means that part of the mobs will be present at a lower/higher level than the desired one.
Issues Addressed:
SOURCE:
Tests Performed:
Linux WOWSERVER 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
with Ubuntu 22.04How to Test the Changes:
BONUS: See the issue #176 to compile with log messages that allows tracing the issue