that's cause it doesn't account for the situation ...
# pawn-help
f
that's cause it doesn't account for the situation where the damage is greater than their remaining armour, in which case you must subtract from both armour and health