1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-01 02:45:38 +00:00

Restore invisibility early-out in combat engagement

This commit is contained in:
Alexei Kotov 2022-08-01 15:11:18 +03:00
parent 861f1d5303
commit acfff6b25e

View file

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