mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Merge remote-tracking branch 'viadanna/fix/invisible-combat'
This commit is contained in:
commit
e2efc4770d
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue