aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Chat/Commands
diff options
context:
space:
mode:
authorAzazel <azazel.kon@gmail.com>2011-03-17 11:00:41 +0600
committerAzazel <azazel.kon@gmail.com>2011-03-17 11:00:41 +0600
commitca76e17bd66a0f2597cc53f0aa419e47274d5eab (patch)
treed3ef4d7009f47fecaf22fa6dbadf13375cb476a9 /src/server/game/Chat/Commands
parent926106c095a48a2833c74b23a7a1e39d37b63a31 (diff)
Core/Cleanup: refactor honor and arena rating modifying methods:
* simplify wierd logic; * add const modifiers to several getter methods. (Idea based on commit [11187] by zergtmn for Mangos)
Diffstat (limited to 'src/server/game/Chat/Commands')
-rwxr-xr-xsrc/server/game/Chat/Commands/Level3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Chat/Commands/Level3.cpp b/src/server/game/Chat/Commands/Level3.cpp
index 88e4e2912d2..c0dd068aba2 100755
--- a/src/server/game/Chat/Commands/Level3.cpp
+++ b/src/server/game/Chat/Commands/Level3.cpp
@@ -2490,9 +2490,9 @@ bool ChatHandler::HandleResetHonorCommand (const char * args)
if (!extractPlayerTarget((char*)args,&target))
return false;
+ target->SetHonorPoints(0);
target->SetUInt32Value(PLAYER_FIELD_KILLS, 0);
target->SetUInt32Value(PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, 0);
- target->SetHonorPoints(0);
target->SetUInt32Value(PLAYER_FIELD_TODAY_CONTRIBUTION, 0);
target->SetUInt32Value(PLAYER_FIELD_YESTERDAY_CONTRIBUTION, 0);
target->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_EARN_HONORABLE_KILL);