*Update to Mangos 7093.
--HG-- branch : trunk
This commit is contained in:
+1
-13
@@ -2434,12 +2434,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->HasAuraType(SPELL_AURA_WATER_BREATHING))
|
||||
{
|
||||
m_target->waterbreath = false;
|
||||
|
||||
// update for enable timer in case not moving target
|
||||
if(m_target->GetTypeId()==TYPEID_PLAYER && m_target->IsInWorld())
|
||||
{
|
||||
@@ -3339,10 +3335,6 @@ void Aura::HandleModStealth(bool apply, bool Real)
|
||||
//m_target->SetVisibility(VISIBILITY_OFF);
|
||||
m_target->SetVisibility(VISIBILITY_GROUP_STEALTH);
|
||||
}
|
||||
|
||||
// for RACE_NIGHTELF stealth
|
||||
if(m_target->GetTypeId()==TYPEID_PLAYER && GetId()==20580)
|
||||
m_target->CastSpell(m_target, 21009, true, NULL, this);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -3350,10 +3342,6 @@ void Aura::HandleModStealth(bool apply, bool Real)
|
||||
// only at real aura remove
|
||||
if(Real)
|
||||
{
|
||||
// for RACE_NIGHTELF stealth
|
||||
if(m_target->GetTypeId()==TYPEID_PLAYER && GetId()==20580)
|
||||
m_target->RemoveAurasDueToSpell(21009);
|
||||
|
||||
// if last SPELL_AURA_MOD_STEALTH and no GM invisibility
|
||||
if(!m_target->HasAuraType(SPELL_AURA_MOD_STEALTH) && m_target->GetVisibility()!=VISIBILITY_OFF)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user