1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-12-12 16:43:06 +00:00

Prevent hostile actors from engaging combat against actors with 75 chameleon

This commit is contained in:
Evil Eye 2025-07-24 17:02:42 +02:00
parent acfe9b6785
commit f52d9ad977

View file

@ -683,7 +683,7 @@ namespace MWMechanics
}
}
if (creatureStats2.getMagicEffects().getOrDefault(ESM::MagicEffect::Invisibility).getMagnitude() > 0)
if (isTargetMagicallyHidden(actor2))
return;
// Stop here if target is unreachable