mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-30 02:56:44 +00:00 
			
		
		
		
	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); |         actor.getClass().getCreatureStats(actor).getActiveSpells().purgeEffect(ESM::MagicEffect::Invisibility); | ||||||
|         if (actor.getClass().hasInventoryStore(actor)) |         if (actor.getClass().hasInventoryStore(actor)) | ||||||
|             actor.getClass().getInventoryStore(actor).purgeEffect(ESM::MagicEffect::Invisibility); |             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 |     bool World::isDark() const | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue