aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellEffects.cpp
diff options
context:
space:
mode:
authorOvahlord <dreadkiller@gmx.de>2024-08-22 16:28:26 +0200
committerOvahlord <dreadkiller@gmx.de>2024-08-22 16:28:26 +0200
commit926fda01d8e115cae70f015539b269d7ae4860f2 (patch)
treeefb5228f271db89921183e6a88c55aa0ff387448 /src/server/game/Spells/SpellEffects.cpp
parentd6375047854b5dd6639d6208619f12ad4c09d6cc (diff)
Core/Quests: fixed max level quest money rewards and calculate them during runtime instead of using dumped DB values
* this fixes an exploit that was allowing players that have capped their level via npc to obtain higher max level money rewards if the quest info came from a sniff that was done with a max level character
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
-rw-r--r--src/server/game/Spells/SpellEffects.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index b1623f71790..2502a2a66d3 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -5418,7 +5418,7 @@ void Spell::EffectGiveExperience()
if (!playerTarget)
return;
- uint32 xp = Quest::XPValue(playerTarget, 0, 0, effectInfo->MiscValueB);
+ uint32 xp = Quest::XPValue(playerTarget->GetLevel(), 0, 0, effectInfo->MiscValueB);
playerTarget->GiveXP(xp, nullptr);
}