1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-29 04:06:40 +00:00

Merge branch 'invis' into 'master'

Restore invisibility early-out in combat engagement

See merge request OpenMW/openmw!2229
This commit is contained in:
psi29a 2022-08-02 13:26:27 +00:00
commit caf971b979

View file

@ -631,6 +631,9 @@ namespace MWMechanics
} }
} }
if (creatureStats2.getMagicEffects().get(ESM::MagicEffect::Invisibility).getMagnitude() > 0)
return;
// Stop here if target is unreachable // Stop here if target is unreachable
if (!canFight(actor1, actor2)) if (!canFight(actor1, actor2))
return; return;