*Update relocation notify code. Only notify units within max visible distance.
*Delete a duplicated config option. --HG-- branch : trunk
This commit is contained in:
1 parent
d7c37e157a
commit
ac9e2ac6d2
5 files changed
+24
-33
No files matched your search
@@ -587,22 +587,6 @@ void Spell::FillTargetMap()
|
||||
if(IsChanneledSpell(m_spellInfo) && !tmpUnitMap.empty())
|
||||
m_needAliveTargetMask |= (1<<i);
|
||||
|
||||
/*if(m_caster->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
Player *me = (Player*)m_caster;
|
||||
for (std::list<Unit*>::const_iterator itr = tmpUnitMap.begin(); itr != tmpUnitMap.end(); ++itr)
|
||||
{
|
||||
Unit *owner = (*itr)->GetOwner();
|
||||
Unit *u = owner ? owner : (*itr);
|
||||
if(u!=m_caster && u->IsPvP() && (!me->duel || me->duel->opponent != u))
|
||||
{
|
||||
me->UpdatePvP(true);
|
||||
me->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_ENTER_PVP_COMBAT);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
for (std::list<Unit*>::iterator itr = tmpUnitMap.begin() ; itr != tmpUnitMap.end();)
|
||||
{
|
||||
if(!CheckTarget(*itr, i, false ))
|
||||
|
||||
Reference in new issue
Block a user