Skip to content

Commit

Permalink
fix(Core/Quest): typo in RewardQuest makes LFG quests not reward if d…
Browse files Browse the repository at this point in the history
…ead (azerothcore#19271)

fix(Core/Quest): typo in RewardQuest

* Allow LFG quests to be rewarded even when dead
  • Loading branch information
Kitzunu authored Jul 4, 2024
1 parent e410804 commit d5ba5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Entities/Player/PlayerQuest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ void Player::RewardQuest(Quest const* quest, uint32 reward, Object* questGiver,
else
{
sScriptMgr->OnGivePlayerXP(this, XP, nullptr, isLFGReward ? PlayerXPSource::XPSOURCE_QUEST_DF : PlayerXPSource::XPSOURCE_QUEST);
GiveXP(XP, nullptr, isLFGReward);
GiveXP(XP, nullptr, 1.0f, isLFGReward);
}

// Give player extra money if GetRewOrReqMoney > 0 and get ReqMoney if negative
Expand Down

0 comments on commit d5ba5e0

Please sign in to comment.