mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
only NPC with fight over 80 will attack you now
This commit is contained in:
parent
882b136b35
commit
a0edb55f60
@ -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…
x
Reference in New Issue
Block a user