mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-14 06:40:40 +00:00
Only raise weapon skills for the player
This commit is contained in:
parent
bec420c69b
commit
f215d2cc30
@ -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…
x
Reference in New Issue
Block a user