diff --git a/src/mod-double-xp-weekend.cpp b/src/mod-double-xp-weekend.cpp index 61f5aca..9e9a4c1 100644 --- a/src/mod-double-xp-weekend.cpp +++ b/src/mod-double-xp-weekend.cpp @@ -79,14 +79,14 @@ class DoubleXpWeekend : public PlayerScript } - void OnGiveXP(Player* player, uint32& amount, Unit* victim, uint8 /*xpSource*/) override + void OnGiveXP(Player* player, uint32& amount, Unit* victim, uint8 xpSource) override { if (!IsEventActive()) { return; } - if (sConfigMgr->GetOption("XPWeekend.QuestOnly", false) && victim && victim->GetTypeId() == TYPEID_UNIT) + if (sConfigMgr->GetOption("XPWeekend.QuestOnly", false) && xpSource != PlayerXPSource::XPSOURCE_QUEST) { return; }