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:
parent
882b136b35
commit
a0edb55f60
1 changed files with 5 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue