Skip to content

Commit 0f3bfba

Browse files
committed
Fix zero armour in damage calculation bug.
1 parent 7a8fb08 commit 0f3bfba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/combat.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ float objDamage(BASE_OBJECT *psObj, UDWORD damage, UDWORD originalhp, UDWORD wea
559559
}
560560
}
561561

562-
if (impactSide != HIT_SIDE_PIERCE)
562+
if (impactSide == HIT_SIDE_PIERCE)
563563
{
564564
armour = 0;
565565
}

0 commit comments

Comments
 (0)