aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 98e3535df30..e7179ecf444 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -14226,7 +14226,13 @@ bool Player::SatisfyQuestLevel(Quest const* qInfo, bool msg)
if (getLevel() < qInfo->GetMinLevel())
{
if(msg)
- SendCanTakeQuestResponse(INVALIDREASON_DONT_HAVE_REQ);
+ SendCanTakeQuestResponse(INVALIDREASON_QUEST_FAILED_LOW_LEVEL);
+ return false;
+ }
+ else if (qInfo->GetMaxLevel() > 0 && getLevel() > qInfo->GetMaxLevel())
+ {
+ if(msg)
+ SendCanTakeQuestResponse(INVALIDREASON_DONT_HAVE_REQ); // There doesn't seem to be a specific response for too high player level
return false;
}
return true;