# HG changeset patch -- Bitbucket.org
# Project Laenalith
# URL
http://bitbucket.org/onkelz28/laenalith/overview/
# User Hyperion
# Date 1259943196 -3600
# Node ID 576f87314330b41a8becbe816925dc540e9e9d09
# Parent 2d3459fdfa6434836d0829672f296d8cf3a48782
*Battleground Honor modification.
*Now you can change the honor with an multiplikator.
--- a/src/game/BattleGround.cpp
+++ b/src/game/BattleGround.cpp
@@ -612,10 +612,28 @@ void BattleGround::RewardHonorToTeam(uin
}
uint32 team = itr->second.Team;
- if(!team) team = plr->GetTeam();
+ uint32 multiplikator = 2;
+
+ if (!team) team = plr->GetTeam();
if (team == TeamID)
- UpdatePlayerScore(plr, SCORE_BONUS_HONOR, Honor);
+ {
+ switch (GetTypeID())
+ {
+ case BATTLEGROUND_WS:
+ case BATTLEGROUND_EY:
+ case BATTLEGROUND_AB:
+ case BATTLEGROUND_AV:
+ {
+ UpdatePlayerScore(plr, SCORE_BONUS_HONOR, (Honor * multiplikator));
+ break;
+ }
+ default:
+ {
+ UpdatePlayerScore(plr, SCORE_BONUS_HONOR, Honor);
+ break;
+ }
+ }
+ }
}
}
Share This Thread