*add SPELL_ATTR_CU_EXCLUDE_SELF

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-05-06 00:07:28 -05:00
1 parent 3f6f15e34b
commit 4045c881ab
2 files changed
+4

No files matched your search

+3
View File
@@ -1535,6 +1535,9 @@ void Spell::SearchAreaTarget(std::list<Unit*> &TagUnitMap, float radius, SpellNo
m_caster->GetMap()->VisitWorld(x, y, radius, notifier);
else
m_caster->GetMap()->VisitAll(x, y, radius, notifier);
if(m_customAttr & SPELL_ATTR_CU_EXCLUDE_SELF)
TagUnitMap.remove(m_caster);
}
WorldObject* Spell::SearchNearbyTarget(float range, SpellTargets TargetType)