[7088] Cleaned up Player::m_isunderwater, fixed a bug which caused SPELL_AURA_WATER_BREATHING to prevent lava damage

This commit is contained in:
arrai 2009-01-14 20:41:07 +01:00
parent 022e7ad2b5
commit b19c0da601
4 changed files with 47 additions and 32 deletions

View file

@ -2499,7 +2499,7 @@ void Aura::HandleAuraHover(bool apply, bool Real)
void Aura::HandleWaterBreathing(bool apply, bool Real)
{
if(!apply && m_target->GetAurasByType(SPELL_AURA_WATER_BREATHING).empty())
if(!apply && !m_target->HasAuraType(SPELL_AURA_WATER_BREATHING))
{
// update for enable timer in case not moving target
if(m_target->GetTypeId()==TYPEID_PLAYER && m_target->IsInWorld())