mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[11187] Minimize direct access to honor and arena points fields
This commit is contained in:
parent
49ef8edb6a
commit
972c08a878
4 changed files with 43 additions and 37 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue