mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Fixed tabs
This commit is contained in:
@@ -1266,10 +1266,10 @@ void Item::ItemContainerSaveLootToDB()
|
||||
if (!_li->canSave)
|
||||
continue;
|
||||
// Conditions are not checked when loot is generated, it is checked when loot is sent to a player.
|
||||
// For items that are lootable, loot is saved to the DB immediately, that means that loot can be
|
||||
// saved to the DB that the player never should have gotten. This check prevents that, so that only
|
||||
// items that the player should get in loot are in the DB.
|
||||
// IE: Horde items are not saved to the DB for Ally players.
|
||||
// For items that are lootable, loot is saved to the DB immediately, that means that loot can be
|
||||
// saved to the DB that the player never should have gotten. This check prevents that, so that only
|
||||
// items that the player should get in loot are in the DB.
|
||||
// IE: Horde items are not saved to the DB for Ally players.
|
||||
Player* const guid = GetOwner();
|
||||
if (!_li->AllowedForPlayer(guid))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user