void FilterTargets(std::list<Unit*>& unitList) { unitList.remove_if(ConflagrationTargetSelector()); uint8 maxSize = uint8(GetCaster()->GetMap()->GetSpawnMode() & 1 ? 6 : 3); if (unitList.size() > maxSize) Trinity::RandomResizeList(unitList, maxSize); }
void FilterTargets(std::list<WorldObject*>& targets) { targets.remove_if(ConflagrationTargetSelector()); uint8 maxSize = uint8(GetCaster()->GetMap()->GetSpawnMode() & 1 ? 6 : 3); if (targets.size() > maxSize) Trinity::Containers::RandomResizeList(targets, maxSize); }