Core/Loot: Only 3 items of the same entry can drop on 25 man raid difficulties and 1 everywhere else (non-raid or 10 man)

This commit is contained in:
Shauren
2013-02-13 20:24:23 +01:00
parent d926ad63c0
commit ca280dbe05
4 changed files with 30 additions and 11 deletions

View File

@@ -258,6 +258,10 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map* map, uint32 phaseMa
LastUsedScriptID = GetGOInfo()->ScriptId;
AIM_Initialize();
// Initialize loot duplicate count depending on raid difficulty
if (map->IsRaid() && map->GetSpawnMode() & RAID_DIFFICULTY_MASK_25MAN)
loot.maxDuplicates = 3;
return true;
}