[10459] Restore update area aura values at caster/around targets.

For example, at related improvement talent learn by caster.
It has been disabled in aura holder code changes.
This commit is contained in:
VladimirMangos 2010-09-09 13:29:09 +04:00
parent 334398b3f7
commit 77148f0e60
3 changed files with 12 additions and 2 deletions

View file

@ -961,7 +961,7 @@ void Aura::ReapplyAffectedPassiveAuras( Unit* target, bool owner_mode )
{
// permanent passive or permanent area aura
// passive spells can be affected only by own or owner spell mods)
if (itr->second->IsPermanent() && (owner_mode && itr->second->IsPassive() /*|| itr->second->IsAreaAura()*/) &&
if (itr->second->IsPermanent() && (owner_mode && itr->second->IsPassive() || itr->second->IsAreaAura()) &&
// non deleted and not same aura (any with same spell id)
!itr->second->IsDeleted() && itr->second->GetId() != GetId() &&
// and affected by aura
@ -8864,6 +8864,15 @@ bool SpellAuraHolder::IsPersistent() const
return false;
}
bool SpellAuraHolder::IsAreaAura() const
{
for (int32 i = 0; i < MAX_EFFECT_INDEX; ++i)
if (Aura *aur = m_auras[i])
if (aur->IsAreaAura())
return true;
return false;
}
bool SpellAuraHolder::IsPositive() const
{
for (int32 i = 0; i < MAX_EFFECT_INDEX; ++i)