From 67d329f0a0095d317acbea3b61c2ec88c9ccd6c9 Mon Sep 17 00:00:00 2001 From: zamalaev Date: Wed, 19 Feb 2020 11:36:48 +0000 Subject: [PATCH] Update build version 5.4.7 (18019) --- src/game/Server/DB2Stores.cpp | 4 ++-- src/game/Server/DBCStores.cpp | 12 +++++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/game/Server/DB2Stores.cpp b/src/game/Server/DB2Stores.cpp index 509efb250..e44b5fad4 100644 --- a/src/game/Server/DB2Stores.cpp +++ b/src/game/Server/DB2Stores.cpp @@ -134,8 +134,8 @@ void LoadDB2Stores(const std::string& dataPath) } // Check loaded DB2 files proper version - if (!sItemStore.LookupEntry(107499) || // last item added in 5.4.1 (17538) - !sItemExtendedCostStore.LookupEntry(5268) ) // last item extended cost added in 5.4.1 (17538) + if (!sItemStore.LookupEntry(109014) || // last item added in 5.4.7 (18019) + !sItemExtendedCostStore.LookupEntry(5268) ) // last item extended cost added in 5.4.7 (18019) { sLog.outString(""); sLog.outError("Please extract correct db2 files from build %s", AcceptableClientBuildsListStr().c_str()); diff --git a/src/game/Server/DBCStores.cpp b/src/game/Server/DBCStores.cpp index 59f82b74b..af9c96426 100644 --- a/src/game/Server/DBCStores.cpp +++ b/src/game/Server/DBCStores.cpp @@ -673,6 +673,7 @@ void LoadDBCStores(const std::string& dataPath) break; } + if (spellEffect->EffectSpellId < MAX_EFFECT_INDEX && spellEffect->Difficulty == 0) sSpellEffectMap[spellEffect->EffectSpellId].effects[spellEffect->EffectIndex] = spellEffect; } } @@ -906,11 +907,11 @@ void LoadDBCStores(const std::string& dataPath) } // Check loaded DBC files proper version - if (!sAreaStore.LookupEntry(5491) || // last area (areaflag) added in 5.4.1 17538 - !sCharTitlesStore.LookupEntry(389) || // last char title added in 5.4.1 17538 - !sGemPropertiesStore.LookupEntry(2467) || // last gem property added in 5.4.1 17538 - !sMapStore.LookupEntry(1173) || // last map added in 5.4.1 17538 - !sSpellStore.LookupEntry(152028) ) // last added spell in 5.4.1 17538 + if (!sAreaStore.LookupEntry(5491) || // last area (areaflag) added in 5.4.7 (18019) + !sCharTitlesStore.LookupEntry(389) || // last char title added in 5.4.7 (18019) + !sGemPropertiesStore.LookupEntry(2467) || // last gem property added in 5.4.7 (18019) + !sMapStore.LookupEntry(1173) || // last map added in 5.4.7 (18019) + !sSpellStore.LookupEntry(155748) ) // last added spell in 5.4.7 (18019) { sLog.outError("\nYou have mixed version DBC files. Please re-extract DBC files for one from client build: %s", AcceptableClientBuildsListStr().c_str()); Log::WaitBeforeContinueIfNeed(); @@ -1196,6 +1197,7 @@ ContentLevels GetContentLevelsForMapAndZone(uint32 mapId, uint32 zoneId) case 1: return CONTENT_61_70; case 2: return CONTENT_71_80; case 3: return CONTENT_81_85; + case 4: return CONTENT_86_90; } }