mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Fix bots using swimming form where they can't swim
This commit is contained in:
parent
0038b2bc08
commit
cf7a013607
@ -22,5 +22,5 @@ bool IsSwimmingValue::Calculate()
|
|||||||
if (!target)
|
if (!target)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return target->IsUnderWater() || target->IsInWater();
|
return target->IsUnderWater() || (target->IsInWater() && target->CanSwim());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user