Don't run AI for knocked-out actors (Fixes #1854)

deque
scrawl 10 years ago
parent 4859c94c72
commit 6fc53e73ad

@ -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…
Cancel
Save