mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Fixed swimming value calculation (#897)
This commit is contained in:
@@ -24,5 +24,5 @@ bool IsSwimmingValue::Calculate()
|
|||||||
if (!target)
|
if (!target)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return target->IsUnderWater() || (target->IsInWater() && target->CanSwim());
|
return target->IsUnderWater() || (target->GetLiquidData().Status == LIQUID_MAP_IN_WATER && target->CanSwim());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user