mirror of
https://github.com/mangosfour/server.git
synced 2025-12-22 13:37:08 +00:00
[7088] Cleaned up Player::m_isunderwater, fixed a bug which caused SPELL_AURA_WATER_BREATHING to prevent lava damage
This commit is contained in:
parent
022e7ad2b5
commit
b19c0da601
4 changed files with 47 additions and 32 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue