aboutsummaryrefslogtreecommitdiff
path: root/src/game/Group.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-02 11:03:43 -0600
committermegamage <none@none>2009-01-02 11:03:43 -0600
commit1e4381f7b1ad0127257dc858ce300ded444e2664 (patch)
tree3e969945e05665916eded128ca5338efab9b812a /src/game/Group.cpp
parent3deefb9f00201033728d4467180d8ba9aa265a20 (diff)
*Update to Mangos 7006.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Group.cpp')
-rw-r--r--src/game/Group.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/Group.cpp b/src/game/Group.cpp
index 3e9dcff7d1b..8afac50da13 100644
--- a/src/game/Group.cpp
+++ b/src/game/Group.cpp
@@ -727,6 +727,8 @@ void Group::CountTheRoll(Rolls::iterator rollI, uint32 NumberOfPlayers)
if(player && player->GetSession())
{
+ player->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_ROLL_NEED_ON_LOOT, roll->itemid, maxresul);
+
ItemPosCountVec dest;
LootItem *item = &(roll->getLoot()->items[roll->itemSlot]);
uint8 msg = player->CanStoreNewItem( NULL_BAG, NULL_SLOT, dest, roll->itemid, item->count );
@@ -772,6 +774,8 @@ void Group::CountTheRoll(Rolls::iterator rollI, uint32 NumberOfPlayers)
if(player && player->GetSession())
{
+ player->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_ROLL_GREED_ON_LOOT, roll->itemid, maxresul);
+
ItemPosCountVec dest;
LootItem *item = &(roll->getLoot()->items[roll->itemSlot]);
uint8 msg = player->CanStoreNewItem( NULL_BAG, NULL_SLOT, dest, roll->itemid, item->count );