mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Fix NPCs being able to practice Block skill
This commit is contained in:
parent
144c818b41
commit
3ac04060c1
@ -133,7 +133,7 @@ namespace MWMechanics
|
||||
|
||||
blockerStats.setBlock(true);
|
||||
|
||||
if (blocker.getClass().isNpc())
|
||||
if (blocker.getCellRef().getRefId() == "player")
|
||||
blocker.getClass().skillUsageSucceeded(blocker, ESM::Skill::Block, 0);
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user