Do not speak with unconscious creatures

new-script-api
Andrei Kortunov 7 years ago
parent f26206b630
commit b8fd530ee1

@ -470,6 +470,9 @@ namespace MWClass
if(stats.getAiSequence().isInCombat())
return std::shared_ptr<MWWorld::Action>(new MWWorld::FailedAction(""));
if(stats.getKnockedDown())
return std::shared_ptr<MWWorld::Action>(new MWWorld::FailedAction(""));
return std::shared_ptr<MWWorld::Action>(new MWWorld::ActionTalk(ptr));
}

Loading…
Cancel
Save