Commit 2d177ee0 authored by nanahira's avatar nanahira

fix

parent aaef895d
Pipeline #43339 passed with stages
in 3 minutes and 35 seconds
......@@ -150,6 +150,14 @@ export class Client {
const tokens = await collectKoishiTextTokens(elements, (element) =>
this.resolveSendChatElement(element, normalizedType),
);
if (type <= NetPlayerType.OBSERVER) {
return this.send(
new YGOProStocChat().fromPartial({
msg: tokens.map((token) => token.text).join(''),
player_type: normalizedType,
}),
);
}
const messages = splitColoredMessagesByLine(
resolveColoredMessages(tokens, normalizedType),
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment