mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fixed parentheses
This commit is contained in:
@@ -1331,11 +1331,12 @@ void LootTemplate::Process(Loot& loot, bool rate, uint16 lootMode, Player const*
|
|||||||
sScriptMgr->OnAfterRefCount(item, maxcount);
|
sScriptMgr->OnAfterRefCount(item, maxcount);
|
||||||
for (uint32 loop = 0; loop < maxcount; ++loop) // Ref multiplicator
|
for (uint32 loop = 0; loop < maxcount; ++loop) // Ref multiplicator
|
||||||
Referenced->Process(loot, rate, lootMode, player, item->group);
|
Referenced->Process(loot, rate, lootMode, player, item->group);
|
||||||
}
|
} else {
|
||||||
else // Plain entries (not a reference, not grouped)
|
// Plain entries (not a reference, not grouped)
|
||||||
sScriptMgr->OnBeforeDropAddItem(player, loot, item);
|
sScriptMgr->OnBeforeDropAddItem(player, loot, item);
|
||||||
loot.AddItem(*item); // Chance is already checked, just add
|
loot.AddItem(*item); // Chance is already checked, just add
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Now processing groups
|
// Now processing groups
|
||||||
for (LootGroups::const_iterator i = Groups.begin(); i != Groups.end(); ++i)
|
for (LootGroups::const_iterator i = Groups.begin(); i != Groups.end(); ++i)
|
||||||
|
|||||||
Reference in New Issue
Block a user