forked from teamnwah/openmw-tes3coop
Don't run AI for knocked-out actors (Fixes #1854)
This commit is contained in:
parent
4859c94c72
commit
6fc53e73ad
1 changed files with 2 additions and 1 deletions
|
@ -148,7 +148,8 @@ bool AiSequence::isPackageDone() const
|
|||
|
||||
void AiSequence::execute (const MWWorld::Ptr& actor,float duration)
|
||||
{
|
||||
if(actor != MWBase::Environment::get().getWorld()->getPlayerPtr())
|
||||
if(actor != MWBase::Environment::get().getWorld()->getPlayerPtr()
|
||||
&& !actor.getClass().getCreatureStats(actor).getKnockedDown())
|
||||
{
|
||||
if (!mPackages.empty())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue