From 5ebba9cdb3941180cae425b7fc3c97ca1bd9ae04 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Sun, 21 Jul 2024 23:53:47 +0800 Subject: [PATCH] Fix spell cast after self bot --- src/strategy/values/SpellIdValue.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/strategy/values/SpellIdValue.cpp b/src/strategy/values/SpellIdValue.cpp index 0e7eef38..beb445f8 100644 --- a/src/strategy/values/SpellIdValue.cpp +++ b/src/strategy/values/SpellIdValue.cpp @@ -6,6 +6,7 @@ #include "ChatHelper.h" #include "Playerbots.h" #include "Vehicle.h" +#include "World.h" SpellIdValue::SpellIdValue(PlayerbotAI* botAI) : CalculatedValue(botAI, "spell id", 20 * 1000) { @@ -34,7 +35,7 @@ uint32 SpellIdValue::Calculate() char firstSymbol = tolower(namepart[0]); int spellLength = wnamepart.length(); - LocaleConstant loc = bot->GetSession()->GetSessionDbcLocale(); + LocaleConstant loc = LOCALE_enUS; std::set spellIds; for (PlayerSpellMap::iterator itr = bot->GetSpellMap().begin(); itr != bot->GetSpellMap().end(); ++itr)