forked from teamnwah/openmw-tes3coop
Only raise weapon skills for the player
This commit is contained in:
parent
bec420c69b
commit
f215d2cc30
1 changed files with 2 additions and 1 deletions
|
@ -373,7 +373,8 @@ namespace MWClass
|
|||
damage /= std::min(1.0f + othercls.getArmorRating(victim)/std::max(1.0f, damage), 4.0f);
|
||||
}
|
||||
}
|
||||
skillUsageSucceeded(ptr, weapskill, 0);
|
||||
if(ptr.getRefData().getHandle() == "player")
|
||||
skillUsageSucceeded(ptr, weapskill, 0);
|
||||
|
||||
othercls.onHit(victim, damage, weapon, ptr, true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue