mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
Merge pull request #2975 from Capostrophic/pickpocket
Fix pickpocketing sneaking stance check
This commit is contained in:
commit
a74f7bbcbe
@ -904,7 +904,7 @@ namespace MWClass
|
||||
}
|
||||
else if (!stats.getAiSequence().isInCombat())
|
||||
{
|
||||
if(getCreatureStats(actor).getStance(MWMechanics::CreatureStats::Stance_Sneak) || stats.getKnockedDown())
|
||||
if (stats.getKnockedDown() || MWBase::Environment::get().getMechanicsManager()->isSneaking(actor))
|
||||
return std::shared_ptr<MWWorld::Action>(new MWWorld::ActionOpen(ptr)); // stealing
|
||||
|
||||
// Can't talk to werewolves
|
||||
|
Loading…
Reference in New Issue
Block a user