mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-19 06:19:38 -04: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:
+7
-1
@@ -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