diff --git a/src/arena/PlayersService/PlayerWeapon.ts b/src/arena/PlayersService/PlayerWeapon.ts index 7423d7d..252a283 100644 --- a/src/arena/PlayersService/PlayerWeapon.ts +++ b/src/arena/PlayersService/PlayerWeapon.ts @@ -27,6 +27,6 @@ export class PlayerWeapon { const item = arena.items[this.inventory.code]; - return types.includes(item.type); + return types.includes(item.wtype); } } diff --git a/src/arena/magics/physicalSadness.ts b/src/arena/magics/physicalSadness.ts index a925065..9747f9b 100644 --- a/src/arena/magics/physicalSadness.ts +++ b/src/arena/magics/physicalSadness.ts @@ -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;