mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Don't let water-only creatures prevent resting
This commit is contained in:
parent
85c7d014d3
commit
a2e174a40f
@ -1535,7 +1535,7 @@ namespace MWMechanics
|
||||
for(std::vector<MWWorld::Ptr>::const_iterator iter(neighbors.begin());iter != neighbors.end();++iter)
|
||||
{
|
||||
const CreatureStats &stats = iter->getClass().getCreatureStats(*iter);
|
||||
if (stats.isDead() || *iter == actor)
|
||||
if (stats.isDead() || *iter == actor || iter->getClass().isPureWaterCreature(*iter))
|
||||
continue;
|
||||
const bool isFollower = std::find(followers.begin(), followers.end(), *iter) != followers.end();
|
||||
if (stats.getAiSequence().isInCombat(actor) || (MWBase::Environment::get().getMechanicsManager()->isAggressive(*iter, actor) && !isFollower))
|
||||
|
Loading…
x
Reference in New Issue
Block a user