forked from teamnwah/openmw-tes3coop
Detect Creature should detect alive creatures only (Fixes #2353)
This commit is contained in:
parent
c27c20a859
commit
801c0eb57c
1 changed files with 3 additions and 0 deletions
|
@ -2886,6 +2886,9 @@ namespace MWWorld
|
|||
}
|
||||
else if (ptr.getClass().getTypeName() != typeid(ESM::Creature).name())
|
||||
return false;
|
||||
|
||||
if (ptr.getClass().getCreatureStats(ptr).isDead())
|
||||
return false;
|
||||
}
|
||||
if (mType == World::Detect_Key && !ptr.getClass().isKey(ptr))
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue