Skip to content

Commit d1bd970

Browse files
committed
use non-standard PlayerXPSource
1 parent acafa25 commit d1bd970

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/ProfessionExp.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44

55
#include "Chat.h"
6-
#include "Config.h"
76
#include "ConfigValueCache.h"
87
#include "Player.h"
98
#include "ScriptMgr.h"
@@ -211,7 +210,7 @@ RewardExperienceScript() : PlayerScript("RewardExperienceScript", {
211210
if (float curve = peConfigData.GetConfigValue<float>(PEConfig::MULT_CURVE))
212211
xp = xp * pow(curve,(minSkill/450));
213212

214-
sScriptMgr->OnPlayerGiveXP(player, xp, nullptr, PlayerXPSource::XPSOURCE_EXPLORE);
213+
sScriptMgr->OnPlayerGiveXP(player, xp, nullptr, PlayerXPSource(42));
215214
player->GiveXP(xp, nullptr);
216215
}
217216
};

0 commit comments

Comments
 (0)