mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-25 11:26:37 +00:00 
			
		
		
		
	Fix soul trapping for one shot kills
This commit is contained in:
		
							parent
							
								
									d6613d3677
								
							
						
					
					
						commit
						ae4578f566
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -48,6 +48,8 @@ namespace MWMechanics | ||||||
|                 MWMechanics::CastSpell cast(attacker, victim, fromProjectile); |                 MWMechanics::CastSpell cast(attacker, victim, fromProjectile); | ||||||
|                 cast.mHitPosition = hitPosition; |                 cast.mHitPosition = hitPosition; | ||||||
|                 cast.cast(object, false); |                 cast.cast(object, false); | ||||||
|  |                 // Apply magic effects directly instead of waiting a frame to allow soul trap to work on one-hit kills
 | ||||||
|  |                 MWBase::Environment::get().getMechanicsManager()->updateMagicEffects(victim); | ||||||
|                 return true; |                 return true; | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue