*Fix the bug that totem can only apply the first aura effect.
--HG-- branch : trunk
This commit is contained in:
1 parent
9215f0ee11
commit
aba285664f
3 files changed
+24
-22
No files matched your search
+19
-19
@@ -721,28 +721,28 @@ void AreaAuraEffect::Update(uint32 diff)
|
||||
}
|
||||
}
|
||||
|
||||
for(std::list<Unit *>::iterator tIter = targets.begin(); tIter != targets.end(); tIter++)
|
||||
for(std::list<Unit*>::iterator tIter = targets.begin(); tIter != targets.end(); tIter++)
|
||||
{
|
||||
bool skip=false;
|
||||
for(Unit::AuraMap::iterator iter = (*tIter)->GetAuras().begin(); iter != (*tIter)->GetAuras().end();++iter)
|
||||
if(Aura *aur = (*tIter)->GetAura(GetId(), m_formalCasterGUID))
|
||||
{
|
||||
bool samecaster = iter->second->GetCasterGUID() == GetCasterGUID();
|
||||
if (samecaster && iter->first == GetId())
|
||||
{
|
||||
if (AuraEffect * aurEff = iter->second->GetPartAura(m_effIndex))
|
||||
{
|
||||
skip=true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (spellmgr.IsNoStackSpellDueToSpell(GetId(), iter->first,samecaster))
|
||||
{
|
||||
skip=true;
|
||||
break;
|
||||
}
|
||||
if(aur->HasEffect(GetEffIndex()))
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool skip = false;
|
||||
for(Unit::AuraMap::iterator iter = (*tIter)->GetAuras().begin(); iter != (*tIter)->GetAuras().end();++iter)
|
||||
{
|
||||
bool samecaster = iter->second->GetCasterGUID() == m_formalCasterGUID;
|
||||
if(spellmgr.IsNoStackSpellDueToSpell(GetId(), iter->first, samecaster))
|
||||
{
|
||||
skip = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(skip)
|
||||
continue;
|
||||
}
|
||||
if(skip)
|
||||
continue;
|
||||
|
||||
if(SpellEntry const *actualSpellInfo = spellmgr.SelectAuraRankForPlayerLevel(GetSpellProto(), (*tIter)->getLevel()))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user