Skip to content

Commit

Permalink
fix: Fight crash on immunity to bomb damage
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenoo committed Sep 29, 2024
1 parent d3653b5 commit 846a453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/utils/fight/bomb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { untrap } from './untrap';
const getBombDamage = (damage: BombStep['d'], target: AnimationFighter) => {
const targetDamage = damage[target.index];

if (!targetDamage) {
if (typeof targetDamage !== 'number') {
throw new Error('Target damage not found');
}

Expand Down

0 comments on commit 846a453

Please sign in to comment.