mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Loot: fix mistake in previous commit. also fix flags in sql. i did things backwards ^^
This commit is contained in:
1
sql/updates/world/2012_06_07_03_world_item_template.sql
Normal file
1
sql/updates/world/2012_06_07_03_world_item_template.sql
Normal file
@@ -0,0 +1 @@
|
||||
UPDATE `item_template` SET `flags` = 0 WHERE `entry` IN (50274,50226,50231);
|
||||
@@ -360,7 +360,7 @@ bool LootItem::AllowedForPlayer(Player const* player) const
|
||||
if (!(pProto->FlagsCu & ITEM_FLAGS_CU_IGNORE_QUEST_STATUS) && ((needs_quest || (pProto->StartQuest && player->GetQuestStatus(pProto->StartQuest) != QUEST_STATUS_NONE)) && !player->HasQuestForItem(itemid)))
|
||||
if (Group const* group = player->GetGroup())
|
||||
{
|
||||
if ((pProto->Flags & ITEM_PROTO_FLAG_PARTY_LOOT) == 0 || (pProto->Flags & ITEM_PROTO_FLAG_PARTY_LOOT && (group->GetLootMethod() != MASTER_LOOT || group->GetLooterGuid() != player->GetGUID())))
|
||||
if (pProto->Flags & ITEM_PROTO_FLAG_PARTY_LOOT || ((pProto->Flags & ITEM_PROTO_FLAG_PARTY_LOOT) == 0 && (group->GetLootMethod() != MASTER_LOOT || group->GetLooterGuid() != player->GetGUID())))
|
||||
return false;
|
||||
}
|
||||
else return false;
|
||||
|
||||
Reference in New Issue
Block a user