mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
Merge remote-tracking branch 'viadanna/fix/invisible-combat'
This commit is contained in:
commit
e2efc4770d
@ -325,6 +325,11 @@ namespace MWMechanics
|
||||
currentAction = prepareNextAction(actor, target);
|
||||
actionCooldown = currentAction->getActionCooldown();
|
||||
}
|
||||
|
||||
// Stop attacking if target is not seen
|
||||
if (!MWBase::Environment::get().getMechanicsManager()->awarenessCheck(target, actor))
|
||||
return true;
|
||||
|
||||
if (currentAction.get())
|
||||
currentAction->getCombatRange(rangeAttack, rangeFollow);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user