mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
Fix ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM progress calc
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
278cd970f4
commit
1a55952fa0
1 changed files with 2 additions and 3 deletions
|
|
@ -9921,7 +9921,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;
|
||||
|
|
@ -9937,7 +9937,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;
|
||||
}
|
||||
|
||||
|
|
@ -13063,7 +13063,6 @@ void Player::ItemAddedQuestCheck( uint32 entry, uint32 count )
|
|||
}
|
||||
}
|
||||
UpdateForQuestsGO();
|
||||
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM, entry);
|
||||
}
|
||||
|
||||
void Player::ItemRemovedQuestCheck( uint32 entry, uint32 count )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue