mirror of
https://github.com/mangosfour/server.git
synced 2025-12-22 13:37:08 +00:00
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:
parent
c7a5537bac
commit
022e7ad2b5
4 changed files with 2 additions and 8 deletions
|
|
@ -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())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue