Skip to content

Commit 9709e59

Browse files
fix(enterchat): changing d2 open character statstring to just the product
1 parent 1d4324b commit 9709e59

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Atlasd/Battlenet/Protocols/Game/Messages/SID_ENTERCHAT.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ public override bool Invoke(MessageContext context)
6666
var statstring = context.Arguments.ContainsKey("statstring") ? (byte[])context.Arguments["statstring"] : gameState.Statstring;
6767
var accountName = gameState.Username;
6868

69+
if (Product.IsDiabloII(gameState.Product))
70+
{
71+
statstring = Product.ToByteArray(gameState.Product);
72+
}
73+
6974
// Do not use client-provided statstring if config.battlenet.emulation.statstring_updates is not enabled for this product.
7075
// Blizzard servers allowed statstring updates for Diablo, Diablo II (changing characters), Warcraft III (changing icons), and Shareware variants.
7176
if (!GameState.CanStatstringUpdate(gameState.Product) || statstring.Length == 0) statstring = gameState.GenerateStatstring();

0 commit comments

Comments
 (0)