1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:53:51 +00:00

AIPursue: don't do a LOS check

Properly resolve #4774
This commit is contained in:
Capostrophic 2020-08-09 12:48:59 +03:00
parent f73aa9f27a
commit a0ca7c4b43

View file

@ -39,8 +39,7 @@ bool AiPursue::execute (const MWWorld::Ptr& actor, CharacterController& characte
if (target == MWWorld::Ptr() || !target.getRefData().getCount() || !target.getRefData().isEnabled())
return true;
if (!MWBase::Environment::get().getWorld()->getLOS(target, actor)
|| !MWBase::Environment::get().getMechanicsManager()->awarenessCheck(target, actor))
if (isTargetMagicallyHidden(target) && !MWBase::Environment::get().getMechanicsManager()->awarenessCheck(target, actor))
return false;
if (target.getClass().getCreatureStats(target).isDead())