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:
@@ -1121,6 +1121,7 @@ void Group::CountTheRoll(Rolls::iterator rollI, uint32 NumberOfPlayers)
|
|||||||
roll->getLoot()->unlootedCount--;
|
roll->getLoot()->unlootedCount--;
|
||||||
ItemTemplate const* pProto = sObjectMgr->GetItemTemplate(roll->itemid);
|
ItemTemplate const* pProto = sObjectMgr->GetItemTemplate(roll->itemid);
|
||||||
player->AutoStoreLoot(pProto->DisenchantID, LootTemplates_Disenchant, true);
|
player->AutoStoreLoot(pProto->DisenchantID, LootTemplates_Disenchant, true);
|
||||||
|
player->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL, 13262); // Disenchant
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user