Skip to content

Commit

Permalink
Fix PlayerWeapon.isOfType (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyvg authored Nov 10, 2023
1 parent 758922f commit 7f36e53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/arena/PlayersService/PlayerWeapon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ export class PlayerWeapon {

const item = arena.items[this.inventory.code];

return types.includes(item.type);
return types.includes(item.wtype);
}
}
2 changes: 1 addition & 1 deletion src/arena/magics/physicalSadness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { isSuccessDamageResult } from '../Constuructors/utils';

const isPhysicalDamage = (result): result is PhysNext => {
if (isSuccessDamageResult(result)) {
return result.actionType === 'phys';
return result.dmgType === 'physical';
}

return false;
Expand Down

0 comments on commit 7f36e53

Please sign in to comment.