--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-04-15 12:05:59 -05:00
commit 8e910aca6b
7 files changed
+23 -30

No files matched your search

+1 -8
View File
@@ -2045,14 +2045,7 @@ void Spell::SetTargetMap(uint32 i,uint32 cur,std::list<Unit*> &TagUnitMap)
if(m_spellInfo->Id == 5246) //Intimidating Shout
TagUnitMap.remove(m_targets.getUnitTarget());
// remove random units from the map
std::list<Unit*>::iterator itr;
while(TagUnitMap.size() > unMaxTargets)
{
itr = TagUnitMap.begin();
advance(itr, urand(0, TagUnitMap.size() - 1));
TagUnitMap.erase(itr);
}
Trinity::RandomResizeList(TagUnitMap, unMaxTargets);
/*if(m_spellInfo->Id==57669) //Replenishment (special target selection)
{