mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Fix ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM progress calc Author: DiSlord
--HG-- branch : trunk
This commit is contained in:
@@ -10195,7 +10195,7 @@ Item* Player::StoreItem( ItemPosCountVec const& dest, Item* pItem, bool update )
|
||||
return NULL;
|
||||
|
||||
Item* lastItem = pItem;
|
||||
|
||||
uint32 entry = pItem->GetEntry();
|
||||
for(ItemPosCountVec::const_iterator itr = dest.begin(); itr != dest.end(); )
|
||||
{
|
||||
uint16 pos = itr->pos;
|
||||
@@ -10211,7 +10211,7 @@ Item* Player::StoreItem( ItemPosCountVec const& dest, Item* pItem, bool update )
|
||||
|
||||
lastItem = _StoreItem(pos,pItem,count,true,update);
|
||||
}
|
||||
|
||||
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM, entry);
|
||||
return lastItem;
|
||||
}
|
||||
|
||||
@@ -13337,7 +13337,6 @@ void Player::ItemAddedQuestCheck( uint32 entry, uint32 count )
|
||||
}
|
||||
}
|
||||
UpdateForQuestsGO();
|
||||
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM, entry);
|
||||
}
|
||||
|
||||
void Player::ItemRemovedQuestCheck( uint32 entry, uint32 count )
|
||||
|
||||
Reference in New Issue
Block a user