diff options
| author | SnapperRy <snapperryen@gmail.com> | 2016-09-15 13:50:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-15 13:50:20 +0200 |
| commit | 4eb799560ccf340c3ec8313069c97f137c1e4a68 (patch) | |
| tree | 628cb53776e8c822319368504ea4d5358de4449f /src | |
| parent | ba3202f078aac76ff2248feca01405b7275808e1 (diff) | |
Core/Achievement: do not consider overkill damage for ACHIEVEMENT_CRITERIA_TYPE_DAMAGE_DONE.
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 871293ed2c4..3933a0a16cf 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -748,7 +748,7 @@ uint32 Unit::DealDamage(Unit* victim, uint32 damage, CleanDamage const* cleanDam if (Battleground* bg = killer->GetBattleground()) bg->UpdatePlayerScore(killer, SCORE_DAMAGE_DONE, damage); - killer->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_DAMAGE_DONE, damage, 0, victim); + killer->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_DAMAGE_DONE, damage, health > damage ? damage : health, victim); killer->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HIT_DEALT, damage); } |
