Core/Achievements: ACHIEVEMENT_CRITERIA_TYPE_SPECIAL_PVP_KILL doesn't require a killing blow anymore, only a honorable kill.
Author: @tibbi Closes #6224
This commit is contained in:
1 parent
b75b6d33b0
commit
3e5af53bf7
2 files changed
+7
-6
No files matched your search
@@ -703,14 +703,8 @@ uint32 Unit::DealDamage(Unit* victim, uint32 damage, CleanDamage const* cleanDam
|
||||
sLog->outDebug(LOG_FILTER_UNITS, "DealDamage: victim just died");
|
||||
|
||||
if (victim->GetTypeId() == TYPEID_PLAYER && victim != this)
|
||||
{
|
||||
victim->ToPlayer()->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_TOTAL_DAMAGE_RECEIVED, health);
|
||||
|
||||
// call before auras are removed
|
||||
if (Player* killer = GetCharmerOrOwnerPlayerOrPlayerItself())
|
||||
killer->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_SPECIAL_PVP_KILL, 1, 0, victim);
|
||||
}
|
||||
|
||||
Kill(victim, durabilityLoss);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user