shadez in your last patch i think that we have an error look, the first bold , and the second Battleground also the * i think
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -633,6 +633,10 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
{
// FIXME: kept by compatibility. don't know in BG if the restriction apply.
bg->UpdatePlayerScore(killer, SCORE_DAMAGE_DONE, damage);
+ /** World of Warcraft Armory **/
+ [b] if (BattleGround * bgV = ((Player*)pVictim)->GetBattleGround())[/b] --------THIS-------
+ bgV->UpdatePlayerScore(((Player*)pVictim), SCORE_DAMAGE_TAKEN, damage);
+ /** World of Warcraft Armory **/
}
}
@@ -5862,6 +5866,10 @@ int32 Unit::DealHeal(Unit *pVictim, uint32 addhealth, SpellEntry const *spellPro
{
((Player*)pVictim)->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_TOTAL_HEALING_RECEIVED, gain);
((Player*)pVictim)->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HEALING_RECEIVED, addhealth);
+ /** World of Warcraft Armory **/
+ [b] if (Battleground* bgV = ((Player*)pVictim)->GetBattleground())[/b] -------- THIS --------
+ bgV->UpdatePlayerScore(((Player*)pVictim), SCORE_HEALING_TAKEN, gain);
+ /** World of Warcraft Armory **/
}