mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-24 05:23:07 +00:00
parent
f73aa9f27a
commit
a0ca7c4b43
1 changed files with 1 additions and 2 deletions
|
|
@ -39,8 +39,7 @@ bool AiPursue::execute (const MWWorld::Ptr& actor, CharacterController& characte
|
||||||
if (target == MWWorld::Ptr() || !target.getRefData().getCount() || !target.getRefData().isEnabled())
|
if (target == MWWorld::Ptr() || !target.getRefData().getCount() || !target.getRefData().isEnabled())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (!MWBase::Environment::get().getWorld()->getLOS(target, actor)
|
if (isTargetMagicallyHidden(target) && !MWBase::Environment::get().getMechanicsManager()->awarenessCheck(target, actor))
|
||||||
|| !MWBase::Environment::get().getMechanicsManager()->awarenessCheck(target, actor))
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (target.getClass().getCreatureStats(target).isDead())
|
if (target.getClass().getCreatureStats(target).isDead())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue