Skip to content

Commit

Permalink
fix: fixed weapon prerequisite bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Picoseconds committed Aug 1, 2020
1 parent 4178c3d commit 91470b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moomoo/Game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ export default class Game {
let preItem = getPrerequisiteWeapon(item);

if (preItem) {
if (!(client.player.weapon == item - preItem || client.player.secondaryWeapon == item - preItem)) this.kickClient(client, "Kicked for hacks");
if (!(client.player.weapon == preItem || client.player.secondaryWeapon == preItem)) this.kickClient(client, "Kicked for hacks");
}

if (Object.values(PrimaryWeapons).includes(item)) {
Expand Down

0 comments on commit 91470b5

Please sign in to comment.