Core/Achievements: Update achievement criteria ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL for Disenchant spell (13262) in case of party disenchant roll

This commit is contained in:
Shocker
2011-12-14 04:43:41 +02:00
parent 23a5c5e855
commit 557faa4a4c

View File

@@ -1121,6 +1121,7 @@ void Group::CountTheRoll(Rolls::iterator rollI, uint32 NumberOfPlayers)
roll->getLoot()->unlootedCount--;
ItemTemplate const* pProto = sObjectMgr->GetItemTemplate(roll->itemid);
player->AutoStoreLoot(pProto->DisenchantID, LootTemplates_Disenchant, true);
player->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL, 13262); // Disenchant
}
}
}