Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solved a bug which caused part of the creature to not be properly sca… #188

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

kewinrausch
Copy link
Contributor

…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:

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:

  1. Compile the module with the master branch
  2. 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.
  3. 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
@Helias
Copy link
Member

Helias commented Aug 22, 2024

thanks for your investigation and for the fix!

@Helias Helias merged commit f1b10a7 into azerothcore:master Aug 22, 2024
1 check passed
@kewinrausch kewinrausch deleted the busaroth branch September 14, 2024 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants