1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-12 12:38:02 +00:00

Creatures with no movement should not attempt to start combat (Fixes #2786)

This commit is contained in:
scrawl 2015-07-31 01:26:26 +02:00
parent f326b8e5d2
commit 7644a46ded

View File

@ -291,6 +291,10 @@ namespace MWMechanics
return;
}
// no combat for totally static creatures (they have no movement or attack animations anyway)
if (!actor1.getClass().isMobile(actor1))
return;
bool aggressive;
if (againstPlayer)