*Update to Mangos 7111.
--HG-- branch : trunk
This commit is contained in:
@@ -828,10 +828,6 @@ void Aura::_AddAura()
|
||||
break;
|
||||
}
|
||||
|
||||
// register aura
|
||||
if (getDiminishGroup() != DIMINISHING_NONE )
|
||||
m_target->ApplyDiminishingAura(getDiminishGroup(),true);
|
||||
|
||||
Unit* caster = GetCaster();
|
||||
|
||||
// passive auras (except totem auras) do not get placed in the slots
|
||||
@@ -854,6 +850,10 @@ void Aura::_AddAura()
|
||||
//*****************************************************
|
||||
if (!secondaura)
|
||||
{
|
||||
// register aura diminishing on apply
|
||||
if (getDiminishGroup() != DIMINISHING_NONE )
|
||||
m_target->ApplyDiminishingAura(getDiminishGroup(),true);
|
||||
|
||||
// Update Seals information
|
||||
if (IsSealSpell(m_spellProto))
|
||||
m_target->ModifyAuraState(AURA_STATE_JUDGEMENT, true);
|
||||
@@ -897,10 +897,6 @@ void Aura::_RemoveAura()
|
||||
dynObj->RemoveAffected(m_target);
|
||||
}
|
||||
|
||||
// unregister aura
|
||||
if (getDiminishGroup() != DIMINISHING_NONE )
|
||||
m_target->ApplyDiminishingAura(getDiminishGroup(),false);
|
||||
|
||||
//passive auras do not get put in slots
|
||||
// Note: but totem can be not accessible for aura target in time remove (to far for find in grid)
|
||||
//if(m_isPassive && !(caster && caster->GetTypeId() == TYPEID_UNIT && ((Creature*)caster)->isTotem()))
|
||||
@@ -935,6 +931,10 @@ void Aura::_RemoveAura()
|
||||
// only remove icon when the last aura of the spell is removed (current aura already removed from list)
|
||||
if (lastaura)
|
||||
{
|
||||
// unregister aura diminishing (and store last time)
|
||||
if (getDiminishGroup() != DIMINISHING_NONE )
|
||||
m_target->ApplyDiminishingAura(getDiminishGroup(),false);
|
||||
|
||||
SetAura(true);
|
||||
SetAuraFlags(AFLAG_NONE);
|
||||
SetAuraLevel(0);
|
||||
|
||||
Reference in New Issue
Block a user