1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 02:53:51 +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

@ -72,9 +72,12 @@ void MWMechanics::AiSequence::execute (const MWWorld::Ptr& actor)
mCombatPackage->execute(actor);
}
else
{
if(actor.getClass().getCreatureStats(actor).getAiSetting(1)> 80)
{
mCombat = true;
mCombatPackage = new AiCombat("player");
}
if (!mPackages.empty())
{
if (mPackages.front()->execute (actor))