1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:23:52 +00:00

only NPC with fight over 80 will attack you now

This commit is contained in:
gus 2013-10-27 13:50:29 +01:00
parent 882b136b35
commit a0edb55f60

View file

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