1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 18:19:55 +00:00

Improve owned crosshair feature behaviour

This commit is contained in:
Andrei Kortunov 2017-09-30 21:29:02 +04:00
parent b8fd530ee1
commit c5fcb9684e

View file

@ -856,6 +856,9 @@ namespace MWMechanics
if (target.getClass().getCreatureStats(target).isDead())
return true;
if (target.getClass().getCreatureStats(target).getAiSequence().isInCombat())
return true;
// check if a player tries to pickpocket a target NPC
if(ptr.getClass().getCreatureStats(ptr).getStance(MWMechanics::CreatureStats::Stance_Sneak)
|| target.getClass().getCreatureStats(target).getKnockedDown())