[8778] corrected bg-spawnmodes based on dbc-data

so it seems, that the difficulty-level isn't implemented
for all battlegrounds (in fact only for alterac valley)
we now set the difficulty level based on queue-id and then go down
to the highest difficulty-level possible for this map

big thx to vladimir for information and help with code :)
This commit is contained in:
balrok 2009-11-05 13:24:44 +01:00
parent 500858b789
commit a6d245058d
2 changed files with 4 additions and 1 deletions

View file

@ -218,6 +218,9 @@ BattleGroundMap* MapInstanced::CreateBattleGroundMap(uint32 InstanceId, BattleGr
// 0-59 normal spawn 60-69 difficulty_1, 70-79 difficulty_2, 80 dufficulty_3
uint8 spawnMode = (bg->GetQueueId() > QUEUE_ID_MAX_LEVEL_59) ? (bg->GetQueueId() - QUEUE_ID_MAX_LEVEL_59) : 0;
// some bgs don't have different spawnmodes, with this we can stay close to dbc-data
while (!GetMapDifficultyData(GetId(), Difficulty(spawnMode)))
spawnMode--;
BattleGroundMap *map = new BattleGroundMap(GetId(), GetGridExpiry(), InstanceId, this, spawnMode);
ASSERT(map->IsBattleGroundOrArena());
map->SetBG(bg);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8777"
#define REVISION_NR "8778"
#endif // __REVISION_NR_H__