mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-06-23 22:41:36 +00:00
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())
|
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…
Reference in a new issue