Fix bots using swimming form where they can't swim

This commit is contained in:
郑佩茹
2023-03-23 12:38:05 -06:00
parent 0038b2bc08
commit cf7a013607

View File

@@ -22,5 +22,5 @@ bool IsSwimmingValue::Calculate()
if (!target)
return false;
return target->IsUnderWater() || target->IsInWater();
return target->IsUnderWater() || (target->IsInWater() && target->CanSwim());
}