Fixes #1205: apparently creature and hand-to-hand (health) attacks should also level up armor skill (tested in vanilla)

This commit is contained in:
scrawl 2014-03-15 21:00:25 +01:00
parent 61955111f1
commit d08394bf78

View file

@ -673,12 +673,7 @@ namespace MWClass
else
getCreatureStats(ptr).setHitRecovery(true); // Is this supposed to always occur?
if(object.isEmpty())
{
if(ishealth)
damage /= std::min(1.0f + getArmorRating(ptr)/std::max(1.0f, damage), 4.0f);
}
else if(ishealth)
if(ishealth)
{
// Hit percentages:
// cuirass = 30%