Skip to content

Commit

Permalink
Fix zero armour in damage calculation bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
perim committed Nov 3, 2010
1 parent 7a8fb08 commit 0f3bfba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/combat.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ float objDamage(BASE_OBJECT *psObj, UDWORD damage, UDWORD originalhp, UDWORD wea
}
}

if (impactSide != HIT_SIDE_PIERCE)
if (impactSide == HIT_SIDE_PIERCE)
{
armour = 0;
}
Expand Down

0 comments on commit 0f3bfba

Please sign in to comment.