forked from teamnwah/openmw-tes3coop
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
|
else
|
||||||
getCreatureStats(ptr).setHitRecovery(true); // Is this supposed to always occur?
|
getCreatureStats(ptr).setHitRecovery(true); // Is this supposed to always occur?
|
||||||
|
|
||||||
if(object.isEmpty())
|
if(ishealth)
|
||||||
{
|
|
||||||
if(ishealth)
|
|
||||||
damage /= std::min(1.0f + getArmorRating(ptr)/std::max(1.0f, damage), 4.0f);
|
|
||||||
}
|
|
||||||
else if(ishealth)
|
|
||||||
{
|
{
|
||||||
// Hit percentages:
|
// Hit percentages:
|
||||||
// cuirass = 30%
|
// cuirass = 30%
|
||||||
|
|
Loading…
Reference in a new issue