forked from teamnwah/openmw-tes3coop
Fix being able to steal undetected just after invisibility breaks
This commit is contained in:
parent
80f66e2157
commit
56bc5a9d39
1 changed files with 3 additions and 0 deletions
|
@ -2344,6 +2344,9 @@ namespace MWWorld
|
|||
actor.getClass().getCreatureStats(actor).getActiveSpells().purgeEffect(ESM::MagicEffect::Invisibility);
|
||||
if (actor.getClass().hasInventoryStore(actor))
|
||||
actor.getClass().getInventoryStore(actor).purgeEffect(ESM::MagicEffect::Invisibility);
|
||||
|
||||
// Normally updated once per frame, but here it is kinda important to do it right away.
|
||||
MWBase::Environment::get().getMechanicsManager()->updateMagicEffects(actor);
|
||||
}
|
||||
|
||||
bool World::isDark() const
|
||||
|
|
Loading…
Reference in a new issue