mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-14 22:19:25 +01:00
* Update structure for SMSG_ADDON_INFO and add some sort of basic handling for incorrect addon CRCs (anti-cheating).
* Fix CRLF in MovementHandler.cpp. * Move some handlers/senders to correct place. --HG-- branch : trunk
This commit is contained in:
@@ -8941,11 +8941,11 @@ void ObjectMgr::LoadCreatureClassLevelStats()
|
||||
stats.BaseMana = fields[5].GetUInt32();
|
||||
stats.BaseArmor = fields[6].GetUInt32();
|
||||
|
||||
if (stats.Level > MAX_LEVEL)
|
||||
if (stats.Level > STRONG_MAX_LEVEL)
|
||||
{
|
||||
sLog.outErrorDb("Creature base stats for class %u has invalid level %u (max is %u) - set to %u",
|
||||
stats.Class, stats.Level, MAX_LEVEL, DEFAULT_MAX_LEVEL);
|
||||
stats.Level = DEFAULT_MAX_LEVEL;
|
||||
stats.Class, stats.Level, STRONG_MAX_LEVEL, STRONG_MAX_LEVEL);
|
||||
stats.Level = STRONG_MAX_LEVEL;
|
||||
}
|
||||
|
||||
if (!stats.Class || ((1 << (stats.Class - 1)) & CLASSMASK_ALL_CREATURES) == 0)
|
||||
|
||||
Reference in New Issue
Block a user