mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 17:19:07 +00:00
fix(MMAP/core/PathGenerator): Try to fix more water creatures (#13705)
Co-authored-by: jackpoz <giacomopoz@gmail.com>
This commit is contained in:
@@ -4166,7 +4166,7 @@ bool Unit::isInAccessiblePlaceFor(Creature const* c) const
|
||||
}
|
||||
|
||||
LiquidStatus liquidStatus = GetLiquidData().Status;
|
||||
bool isInWater = (liquidStatus & MAP_LIQUID_STATUS_SWIMMING) != 0;
|
||||
bool isInWater = (liquidStatus & MAP_LIQUID_STATUS_IN_CONTACT) != 0;
|
||||
|
||||
// In water or jumping in water
|
||||
if (isInWater || (liquidStatus == LIQUID_MAP_ABOVE_WATER && (IsFalling() || (ToPlayer() && ToPlayer()->IsFalling()))))
|
||||
|
||||
Reference in New Issue
Block a user