Skip to content

Conversation

@ovv
Copy link
Contributor

@ovv ovv commented Apr 28, 2025

Changes Proposed:

Level scaling is broken because the OnCreateMap is called after OnBeforeCreatureSelectLevel

This lead to lfg level information not being set when the map is created, and the level scaling logic is not able to find the lfg level information. This commit fixes that by moving the logic from OnCreateMap to a new function called GetMapInfo used in all the places where we need to get the autobalance map info. The first time the map is requested, it will be initialized and the data will be set.

Issues Addressed:

None directly but I think some issues might be linked to the missing information as the MapInfo doesn't store any information about the creatures

SOURCE:

Tests Performed:

Before patch

image

After patch

image

How to Test the Changes:

  1. Enable levelscaling
  2. Enter an instance
  3. Check .ab mapstat output
  4. Check SkipHigherLevels and SkipLowerLevels configuration work as expected

…oreCreatureSelectLevel

This lead to lfg level information not being set when the map is created, and the level scaling logic
is not able to find the lfg level information. This commit fixes that by moving the logic from
OnCreateMap to a new function called GetMapInfo used in all the places where we need to get the
autobalance map info. The first time the map is requested, it will be initialized and the data will be set.
@ovv ovv marked this pull request as ready for review April 29, 2025 06:56
@sudlud sudlud merged commit ff5bf37 into azerothcore:master May 2, 2025
1 check passed
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