From a0edb55f600844b7f5474df1395f7476983d7e99 Mon Sep 17 00:00:00 2001 From: gus Date: Sun, 27 Oct 2013 13:50:29 +0100 Subject: [PATCH] only NPC with fight over 80 will attack you now --- apps/openmw/mwmechanics/aisequence.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwmechanics/aisequence.cpp b/apps/openmw/mwmechanics/aisequence.cpp index 5e1bc1791..86c07947f 100644 --- a/apps/openmw/mwmechanics/aisequence.cpp +++ b/apps/openmw/mwmechanics/aisequence.cpp @@ -73,8 +73,11 @@ void MWMechanics::AiSequence::execute (const MWWorld::Ptr& actor) } else { - mCombat = true; - mCombatPackage = new AiCombat("player"); + if(actor.getClass().getCreatureStats(actor).getAiSetting(1)> 80) + { + mCombat = true; + mCombatPackage = new AiCombat("player"); + } if (!mPackages.empty()) { if (mPackages.front()->execute (actor))