mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[10708] Update ACHIEVEMENT_CRITERIA_TYPE_LOOT_* with group roll.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
11f13e10bd
commit
050eb8cf5f
2 changed files with 7 additions and 1 deletions
|
|
@ -851,6 +851,9 @@ void Group::CountTheRoll(Rolls::iterator& rollI)
|
||||||
roll->getLoot()->NotifyItemRemoved(roll->itemSlot);
|
roll->getLoot()->NotifyItemRemoved(roll->itemSlot);
|
||||||
--roll->getLoot()->unlootedCount;
|
--roll->getLoot()->unlootedCount;
|
||||||
player->StoreNewItem( dest, roll->itemid, true, item->randomPropertyId);
|
player->StoreNewItem( dest, roll->itemid, true, item->randomPropertyId);
|
||||||
|
player->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_LOOT_ITEM, roll->itemid, item->count);
|
||||||
|
player->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_LOOT_TYPE, roll->getLoot()->loot_type, item->count);
|
||||||
|
player->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_LOOT_EPIC_ITEM, roll->itemid, item->count);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -903,6 +906,9 @@ void Group::CountTheRoll(Rolls::iterator& rollI)
|
||||||
roll->getLoot()->NotifyItemRemoved(roll->itemSlot);
|
roll->getLoot()->NotifyItemRemoved(roll->itemSlot);
|
||||||
--roll->getLoot()->unlootedCount;
|
--roll->getLoot()->unlootedCount;
|
||||||
player->StoreNewItem( dest, roll->itemid, true, item->randomPropertyId);
|
player->StoreNewItem( dest, roll->itemid, true, item->randomPropertyId);
|
||||||
|
player->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_LOOT_ITEM, roll->itemid, item->count);
|
||||||
|
player->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_LOOT_TYPE, roll->getLoot()->loot_type, item->count);
|
||||||
|
player->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_LOOT_EPIC_ITEM, roll->itemid, item->count);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10707"
|
#define REVISION_NR "10708"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue