Skip to content

Commit

Permalink
fixed bug with matchmaking weapon level check
Browse files Browse the repository at this point in the history
  • Loading branch information
clayamore committed Mar 24, 2024
1 parent 3cf0aac commit 80b5495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ pub mod vm {
match storage_weapon_res {
Some(weapon_param) => {
// Check if weapon is somber
let is_somber = weapon_param.data.reinforceTypeId % 2200 == 0;
let is_somber = weapon_param.data.reinforceTypeId != 0 && weapon_param.data.reinforceTypeId % 2200 == 0;

// Extract weapon level based on wether weapon is somber or not
let weapon_level = if is_somber{
Expand Down

0 comments on commit 80b5495

Please sign in to comment.