aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorihm-tswow <76849026+ihm-tswow@users.noreply.github.com>2021-10-24 15:56:01 +0000
committerGitHub <noreply@github.com>2021-10-24 17:56:01 +0200
commitc946370c5f03c53c4f9bb3d147abcc6b37f4f36d (patch)
tree1d635a19b1e3e0c8b2372e98fae3638e721b975f
parentd61405f7487e1e37b49dd4f85e953b62ba4b4559 (diff)
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.
-rw-r--r--src/server/scripts/Commands/cs_learn.cpp3
1 files changed, 0 insertions, 3 deletions
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;