Detect Creature should detect alive creatures only (Fixes #2353)

celladd
scrawl 10 years ago
parent c27c20a859
commit 801c0eb57c

@ -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…
Cancel
Save