mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-13 16:18:52 +00:00
Detect Creature should detect alive creatures only (Fixes #2353)
This commit is contained in:
parent
c27c20a859
commit
801c0eb57c
@ -2886,6 +2886,9 @@ namespace MWWorld
|
|||||||
}
|
}
|
||||||
else if (ptr.getClass().getTypeName() != typeid(ESM::Creature).name())
|
else if (ptr.getClass().getTypeName() != typeid(ESM::Creature).name())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (ptr.getClass().getCreatureStats(ptr).isDead())
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
if (mType == World::Detect_Key && !ptr.getClass().isKey(ptr))
|
if (mType == World::Detect_Key && !ptr.getClass().isKey(ptr))
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user