Fixed swimming value calculation (#897)

This commit is contained in:
kadeshar
2025-01-23 23:41:24 +01:00
committed by GitHub
parent 08e331371d
commit 7563ab0c79

View File

@@ -24,5 +24,5 @@ bool IsSwimmingValue::Calculate()
if (!target)
return false;
return target->IsUnderWater() || (target->IsInWater() && target->CanSwim());
return target->IsUnderWater() || (target->GetLiquidData().Status == LIQUID_MAP_IN_WATER && target->CanSwim());
}