[11187] Minimize direct access to honor and arena points fields

This commit is contained in:
zergtmn 2011-02-18 17:14:39 +05:00
parent 49ef8edb6a
commit 972c08a878
4 changed files with 43 additions and 37 deletions

View file

@ -4724,9 +4724,9 @@ bool ChatHandler::HandleResetHonorCommand(char* args)
if (!ExtractPlayerTarget(&args, &target))
return false;
target->SetHonorPoints(0);
target->SetUInt32Value(PLAYER_FIELD_KILLS, 0);
target->SetUInt32Value(PLAYER_FIELD_LIFETIME_HONORBALE_KILLS, 0);
target->SetUInt32Value(PLAYER_FIELD_HONOR_CURRENCY, 0);
target->SetUInt32Value(PLAYER_FIELD_TODAY_CONTRIBUTION, 0);
target->SetUInt32Value(PLAYER_FIELD_YESTERDAY_CONTRIBUTION, 0);
target->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_EARN_HONORABLE_KILL);