This is shorter and more readable, imo
```cpp
int32 averageItemLevel = LFG_MIN_WOTLK_AVERAGE_ITEM_LEVEL_180;
if (dungeon->difficulty == DUNGEON_DIFFICULTY_HEROIC)
{
	if (dungeon->map == 650 /* Trial of the Champion */ ||
		dungeon->map == 632 /* The Forge of Souls */ ||
		dungeon->map == 658 /* Pit of Saron */ ||
		dungeon->map == 668 /* Halls of Reflection */)
		averageItemLevel = LFG_MIN_WOTLK_AVERAGE_ITEM_LEVEL_200;
}

if (player->GetAverageItemLevel() < static_cast<float>(averageItemLevel))
    lockData = LFG_LOCKSTATUS_TOO_LOW_AVERAGE_ITEM_LEVEL;
```