Skip to content

Commit

Permalink
Fix typo preventing Trade
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Mar 4, 2024
1 parent 13310d9 commit 720093c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions src/rs/src/skill.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2473,12 +2473,9 @@ impl Skill {
let thing = ctx.get_thing_mut(t);
if let Some(hit) = thing.skill.get_mut(Event::Hit) {
for sk in hit.iter_mut() {
match sk {
Skill::poison(ref mut x) => {
*x = x.saturating_add(1);
return;
}
_ => (),
if let Skill::poison(ref mut x) = sk {
*x = x.saturating_add(1);
return;
}
}
hit.push(Skill::poison(1));
Expand Down
2 changes: 1 addition & 1 deletion src/views/MainMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ export default function MainMenu(props) {
type="button"
value="Trade"
onClick={() => {
if (hasflag(rx.user, 'no-trade')) {
if (!hasflag(rx.user, 'no-trade')) {
sock.userEmit('offertrade', {
f: foename(),
cards: '',
Expand Down

0 comments on commit 720093c

Please sign in to comment.