Removed Unit::waterbreath. This information is not needed for creatures and can be obtained for players by Unit::HasAuraType(SPELL_AURA_WATER_BREATHING) in constant time

This commit is contained in:
arrai 2009-01-14 14:42:38 +01:00
parent c7a5537bac
commit 022e7ad2b5
4 changed files with 2 additions and 8 deletions

View file

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