diff options
author | megamage <none@none> | 2009-04-15 12:05:59 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-15 12:05:59 -0500 |
commit | 8e910aca6b84f407d16f8db9cbe6d3ec093ba57f (patch) | |
tree | e6e3307c4d8ec7e83aec79347818afab1704e512 /src/game/Spell.cpp | |
parent | 80892196951a0bd6559341d03dde764c88c4d296 (diff) | |
parent | 57b33b244f281119e41f83f8b8655bb0042ec24d (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 82293f91f34..25149245037 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -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) { |