mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Fixed swimming value calculation (#897)
This commit is contained in:
parent
08e331371d
commit
7563ab0c79
@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user