diff options
author | megamage <none@none> | 2008-12-19 23:31:02 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-12-19 23:31:02 -0600 |
commit | ac9e2ac6d28c69f37bdaa49e2226a9cf66670f9b (patch) | |
tree | 7cb2280d9fd4151d08efad98660a1f4ee391aa31 /src/game/Spell.cpp | |
parent | d7c37e157a37cb4bdfc7bec99796021f502c8e1f (diff) |
*Update relocation notify code. Only notify units within max visible distance.
*Delete a duplicated config option.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 2ea644f7652..15b4ae78d5e 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -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 )) |