1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-07-05 04:21:41 +00:00

Merge pull request #2975 from Capostrophic/pickpocket

Fix pickpocketing sneaking stance check
This commit is contained in:
Bret Curtis 2020-07-26 23:01:03 +02:00 committed by GitHub
commit a74f7bbcbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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