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
This commit is contained in:
Shauren
2012-03-07 18:57:47 +01:00
parent 2e58d7b515
commit a1a7a2d7c0
4 changed files with 18 additions and 2 deletions
@@ -30,6 +30,7 @@
#include <ace/Null_Mutex.h>
#include <ace/Singleton.h>
#include "DisableMgr.h"
#include "DBCStores.h"
using G3D::Vector3;
@@ -234,7 +235,7 @@ namespace VMAP
floor = info.ground_Z;
ASSERT(floor < std::numeric_limits<float>::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;