…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:
Forced map reset for instance groups different than one. In case of a single player, the condition
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:
Closes issue #176
SOURCE:
See the issue for a trace of the testing performed in order to detect the malfunctioning part.
Tests Performed:
Build without error
Tested in 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.04
How to Test the Changes:
Compile the module with the master branch
Enter a low level instance (Wailing Caverns) with a high level character (50+); part of the initial mobs will be around level 19. Enter manually, do not use LFG or similar tools.
Compile the module with the fix and repeat after exiting and resetting the instance. The mobs and NPC at the start will be around the requested level.
BONUS: See the issue #176 to compile with log messages that allows tracing the issue
…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