mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-12 17:43:05 +00:00
Prevent hostile actors from engaging combat against actors with 75 chameleon
This commit is contained in:
parent
acfe9b6785
commit
f52d9ad977
1 changed files with 1 additions and 1 deletions
|
|
@ -683,7 +683,7 @@ namespace MWMechanics
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (creatureStats2.getMagicEffects().getOrDefault(ESM::MagicEffect::Invisibility).getMagnitude() > 0)
|
if (isTargetMagicallyHidden(actor2))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Stop here if target is unreachable
|
// Stop here if target is unreachable
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue