Skip to content

Commit

Permalink
Merge branch '75_chameleon' into 'master'
Browse files Browse the repository at this point in the history
Make "isTargetMagicallyHidden" include 75% Chameleon

See merge request OpenMW/openmw!3565
  • Loading branch information
Capostrophic committed Nov 7, 2023
2 parents 837d277 + 0f3dba2 commit d5dbbfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/openmw/mwmechanics/actorutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ namespace MWMechanics
{
const MagicEffects& magicEffects = actor.getClass().getCreatureStats(actor).getMagicEffects();
return (magicEffects.getOrDefault(ESM::MagicEffect::Invisibility).getMagnitude() > 0)
|| (magicEffects.getOrDefault(ESM::MagicEffect::Chameleon).getMagnitude() > 75);
|| (magicEffects.getOrDefault(ESM::MagicEffect::Chameleon).getMagnitude() >= 75);
}
}

0 comments on commit d5dbbfb

Please sign in to comment.