Core/Player: More generic fix for duel emote, original idea by 2010phenix
This commit is contained in:
@@ -7547,7 +7547,6 @@ void Player::DuelComplete(DuelCompleteType type)
|
|||||||
if (duel->opponent)
|
if (duel->opponent)
|
||||||
{
|
{
|
||||||
duel->opponent->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_WIN_DUEL, 1);
|
duel->opponent->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_WIN_DUEL, 1);
|
||||||
duel->opponent->HandleEmoteCommand(EMOTE_ONESHOT_CHEER);
|
|
||||||
|
|
||||||
//Credit for quest Death's Challenge
|
//Credit for quest Death's Challenge
|
||||||
if (getClass() == CLASS_DEATH_KNIGHT && duel->opponent->GetQuestStatus(12733) == QUEST_STATUS_INCOMPLETE)
|
if (getClass() == CLASS_DEATH_KNIGHT && duel->opponent->GetQuestStatus(12733) == QUEST_STATUS_INCOMPLETE)
|
||||||
@@ -7558,6 +7557,10 @@ void Player::DuelComplete(DuelCompleteType type)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Victory emote spell
|
||||||
|
if (type != DUEL_INTERRUPTED && duel->opponent)
|
||||||
|
duel->opponent->CastSpell(duel->opponent, 52852, true);
|
||||||
|
|
||||||
//Remove Duel Flag object
|
//Remove Duel Flag object
|
||||||
GameObject* obj = GetMap()->GetGameObject(GetUInt64Value(PLAYER_DUEL_ARBITER));
|
GameObject* obj = GetMap()->GetGameObject(GetUInt64Value(PLAYER_DUEL_ARBITER));
|
||||||
if (obj)
|
if (obj)
|
||||||
|
|||||||
Reference in New Issue
Block a user