mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Achievements: Fixed BuyItemsFromVendors criteria type
This commit is contained in:
@@ -23216,13 +23216,14 @@ bool Player::BuyItemFromVendorSlot(ObjectGuid vendorguid, uint32 vendorslot, uin
|
||||
return false;
|
||||
}
|
||||
|
||||
UpdateCriteria(CriteriaType::BuyItemsFromVendors, 1);
|
||||
|
||||
if (crItem->maxcount != 0) // bought
|
||||
{
|
||||
if (pProto->GetQuality() > ITEM_QUALITY_EPIC || (pProto->GetQuality() == ITEM_QUALITY_EPIC && pProto->GetBaseItemLevel() >= MinNewsItemLevel))
|
||||
if (Guild* guild = GetGuild())
|
||||
guild->AddGuildNews(GUILD_NEWS_ITEM_PURCHASED, GetGUID(), 0, item);
|
||||
|
||||
UpdateCriteria(CriteriaType::BuyItemsFromVendors, 1);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user