Core/Units: fixed a inversed logic mistake when determining when to remove auras with SpellAuraInterruptFlags::UnderWater

This commit is contained in:
Ovahlord committed 2021-04-07 13:58:41 +02:00
1 parent c13c2ec421
commit 2165580350
1 file changed
+2 -2
+2 -2
View File
@@ -3193,9 +3193,9 @@ void Unit::ProcessTerrainStatusUpdate(ZLiquidStatus status, Optional<LiquidData>
// remove appropriate auras if we are swimming/not swimming respectively
if (status & MAP_LIQUID_STATUS_SWIMMING)
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags::AboveWater);
else
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags::UnderWater);
else
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags::AboveWater);
// liquid aura handling
LiquidTypeEntry const* curLiquid = nullptr;