mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 06:26:39 +00:00 
			
		
		
		
	Allow Water Walking on non-submerged creatures
This commit is contained in:
		
							parent
							
								
									22b11c5947
								
							
						
					
					
						commit
						b99c2c54d8
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -292,7 +292,7 @@ namespace MWMechanics
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                break;
 | 
					                break;
 | 
				
			||||||
            case ESM::MagicEffect::WaterWalking:
 | 
					            case ESM::MagicEffect::WaterWalking:
 | 
				
			||||||
                if (target.getClass().isPureWaterCreature(target))
 | 
					                if (target.getClass().isPureWaterCreature(target) && MWBase::Environment::get().getWorld()->isSwimming(target))
 | 
				
			||||||
                    return false;
 | 
					                    return false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                MWBase::World *world = MWBase::Environment::get().getWorld();
 | 
					                MWBase::World *world = MWBase::Environment::get().getWorld();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue