mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Fix bots using swimming form where they can't swim
This commit is contained in:
@@ -22,5 +22,5 @@ bool IsSwimmingValue::Calculate()
|
||||
if (!target)
|
||||
return false;
|
||||
|
||||
return target->IsUnderWater() || target->IsInWater();
|
||||
return target->IsUnderWater() || (target->IsInWater() && target->CanSwim());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user