mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
Fix for quest Death's Challenge, cos we should get KillCredit also when we win duel with other dk player
--HG-- branch : trunk
This commit is contained in:
@@ -6702,7 +6702,13 @@ void Player::DuelComplete(DuelCompleteType type)
|
||||
{
|
||||
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_LOSE_DUEL, 1);
|
||||
if (duel->opponent)
|
||||
duel->opponent->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_WIN_DUEL, 1);
|
||||
{
|
||||
duel->opponent->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_WIN_DUEL, 1);
|
||||
|
||||
//Credit for quest Death's Challenge
|
||||
if (getClass() == CLASS_DEATH_KNIGHT && duel->opponent->GetQuestStatus(12733) == QUEST_STATUS_INCOMPLETE)
|
||||
duel->opponent->CastSpell(duel->opponent, 52994, true);
|
||||
}
|
||||
}
|
||||
|
||||
//Remove Duel Flag object
|
||||
|
||||
Reference in New Issue
Block a user