From 59889d926d7c3d4a57afa357f25f69c0c8dea7bb Mon Sep 17 00:00:00 2001 From: ihm-tswow <76849026+ihm-tswow@users.noreply.github.com> Date: Sun, 24 Oct 2021 15:56:01 +0000 Subject: Scripts/Commands: fix `.learn all recipes` (#27153) if client had same locale as server, the command didn't work (should've been != and not ==). Furthermore, server dbcs only have the server locale for these, and they might or might not match up with the client. only downside of removing the check entirely is possibility of mixups if two locales have overlapping names for different skills. I highly doubt a single such instance exists. (cherry picked from commit c946370c5f03c53c4f9bb3d147abcc6b37f4f36d) --- src/server/scripts/Commands/cs_learn.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/server/scripts/Commands') diff --git a/src/server/scripts/Commands/cs_learn.cpp b/src/server/scripts/Commands/cs_learn.cpp index 48dd1b6cdec..837245a290c 100644 --- a/src/server/scripts/Commands/cs_learn.cpp +++ b/src/server/scripts/Commands/cs_learn.cpp @@ -393,9 +393,6 @@ public: LocaleConstant locale = LOCALE_enUS; for (; locale < TOTAL_LOCALES; locale = LocaleConstant(locale + 1)) { - if (locale == handler->GetSessionDbcLocale()) - continue; - name = skillInfo->DisplayName[locale]; if (!name || !*name) continue; -- cgit v1.2.3