Skip to content

Commit

Permalink
Fix //w in chat, fix Legacy SoSe shard filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Dubé committed Aug 10, 2023
1 parent fa300f3 commit b53957a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/parseChat.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ export default function parseChat(e) {
store.chatMsg(msg.slice(1), 'System');
} else if (!msg.match(/^\/[^/]/) || (user && msg.match(/^\/w( |")/))) {
if (!msg.match(/^\s*$/)) {
msg = msg.replace(/^\/\//, '/');
escapedmsg = msg.replace(/^\/\//, '/');
if (user) {
const data = { msg };
const data = { msg: escapedmsg };
if (msg.match(/^\/w( |")/)) {
const match = msg.match(/^\/w"([^"]*)"/);
const to = (match && match[1]) || msg.slice(3, msg.indexOf(' ', 4));
Expand All @@ -128,7 +128,7 @@ export default function parseChat(e) {
} else {
sock.emit({
x: 'guestchat',
msg: msg,
msg: escapedmsg,
u: storeState.opts.username || guestname,
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/rs/src/skill.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4856,7 +4856,7 @@ impl Skill {
&& !card::IsOf(card.code as i32, card::v_Miracle)
&& !etg::ShardList[1..]
.iter()
.any(|&shard| card::IsOf(card.code as i32 + 2000, shard as i32))
.any(|&shard| card::IsOf(card.code as i32, shard as i32 - 4000))
&& (i > 0 || anyentro || card.element as i32 == etg::Entropy)
}) {
if card.element as i32 == etg::Entropy {
Expand Down

0 comments on commit b53957a

Please sign in to comment.