1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 15:15:31 +00:00

Allow Water Walking on non-submerged creatures

This commit is contained in:
Allofich 2016-09-01 03:34:55 +09:00
parent 22b11c5947
commit b99c2c54d8

View file

@ -292,7 +292,7 @@ namespace MWMechanics
}
break;
case ESM::MagicEffect::WaterWalking:
if (target.getClass().isPureWaterCreature(target))
if (target.getClass().isPureWaterCreature(target) && MWBase::Environment::get().getWorld()->isSwimming(target))
return false;
MWBase::World *world = MWBase::Environment::get().getWorld();