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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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());
} }