From c946370c5f03c53c4f9bb3d147abcc6b37f4f36d 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. --- 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 de6358ac65f..86e625f9d1b 100644 --- a/src/server/scripts/Commands/cs_learn.cpp +++ b/src/server/scripts/Commands/cs_learn.cpp @@ -405,9 +405,6 @@ public: uint8 locale = 0; for (; locale < TOTAL_LOCALES; ++locale) { - if (locale == handler->GetSessionDbcLocale()) - continue; - name = skillInfo->DisplayName[locale]; if (!name || !*name) continue; -- cgit v1.2.3