forked from mirror/openmw-tes3mp
Fixes #1205: apparently creature and hand-to-hand (health) attacks should also level up armor skill (tested in vanilla)
This commit is contained in:
parent
61955111f1
commit
d08394bf78
1 changed files with 1 additions and 6 deletions
|
@ -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%
|
||||
|
|
Loading…
Reference in a new issue