mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-19 01:16:45 -04:00
Merge branch 'everyonelikeschameleons' into 'master'
Prevent hostile actors from engaging combat against actors with 75 chameleon See merge request OpenMW/openmw!4806
This commit is contained in:
commit
a599825bf8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user