Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
fix: deploy group check
Browse files Browse the repository at this point in the history
  • Loading branch information
leia-uwu committed Oct 27, 2024
1 parent 0e8aadb commit 462f0e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/game/weaponManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ export class WeaponManager {
// @ts-expect-error All combinations of non-identical non-zero values (including undefined)
// give NaN or a number not equal to 1, meaning that this correctly checks
// for two identical non-zero numerical deploy groups
curWeaponDef.deployGroup / nextWeaponDef.deployGroup === 1
curWeaponDef.deployGroup / nextWeaponDef.deployGroup === 1 &&
curWeapon.cooldown > 0
) {
effectiveSwitchDelay = nextWeaponDef.switchDelay;
}
Expand Down

0 comments on commit 462f0e8

Please sign in to comment.