From a1a7a2d7c06e9a8d1cbf3a8901d8d134dcd1ee6a Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 7 Mar 2012 18:57:47 +0100 Subject: Core/Players * Add liquid special aura only if player is in it (not when above) * Use CastSpell instead of AddAura - checks all dbc conditions on spell --- src/server/collision/Management/VMapManager2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/server/collision/Management/VMapManager2.cpp') diff --git a/src/server/collision/Management/VMapManager2.cpp b/src/server/collision/Management/VMapManager2.cpp index 6139a27fb52..b9f0f25c2f9 100644 --- a/src/server/collision/Management/VMapManager2.cpp +++ b/src/server/collision/Management/VMapManager2.cpp @@ -30,6 +30,7 @@ #include #include #include "DisableMgr.h" +#include "DBCStores.h" using G3D::Vector3; @@ -234,7 +235,7 @@ namespace VMAP floor = info.ground_Z; ASSERT(floor < std::numeric_limits::max()); type = info.hitModel->GetLiquidType(); // entry from LiquidType.dbc - if (reqLiquidType && !(type & reqLiquidType)) + if (reqLiquidType && !(GetLiquidFlags(type) & reqLiquidType)) return false; if (info.hitInstance->GetLiquidLevel(pos, info, level)) return true; -- cgit v1.2.3