Skip to content

Instantly share code, notes, and snippets.

@DDuarte
Created October 19, 2011 20:10
Show Gist options
  • Save DDuarte/1299518 to your computer and use it in GitHub Desktop.
Save DDuarte/1299518 to your computer and use it in GitHub Desktop.
From 4fd7e15ce37e77f1bc9dca32ed289c612ec11975 Mon Sep 17 00:00:00 2001
From: Nay <dnpd.dd@gmail.com>
Date: Wed, 19 Oct 2011 21:10:12 +0100
Subject: [PATCH] Core/Quests: Fix Candy Buckets
---
src/server/game/Quests/QuestDef.cpp | 5 +++++
src/server/game/Quests/QuestDef.h | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/server/game/Quests/QuestDef.cpp b/src/server/game/Quests/QuestDef.cpp
index a1a1f5d..9a1f322 100755
--- a/src/server/game/Quests/QuestDef.cpp
+++ b/src/server/game/Quests/QuestDef.cpp
@@ -205,6 +205,11 @@ int32 Quest::GetRewOrReqMoney() const
return int32(RewOrReqMoney * sWorld->getRate(RATE_DROP_MONEY));
}
+bool Quest::IsAutoComplete() const
+{
+ return QuestMethod == 0 || HasFlag(QUEST_FLAGS_AUTOCOMPLETE);
+}
+
bool Quest::IsAllowedInRaid() const
{
if (IsRaidQuest())
diff --git a/src/server/game/Quests/QuestDef.h b/src/server/game/Quests/QuestDef.h
index 61d492c..90e5266 100755
--- a/src/server/game/Quests/QuestDef.h
+++ b/src/server/game/Quests/QuestDef.h
@@ -246,7 +246,7 @@ class Quest
uint32 GetQuestStartScript() const { return QuestStartScript; }
uint32 GetQuestCompleteScript() const { return QuestCompleteScript; }
bool IsRepeatable() const { return QuestFlags & QUEST_TRINITY_FLAGS_REPEATABLE; }
- bool IsAutoComplete() const { return QuestMethod ? false : true; }
+ bool IsAutoComplete() const;
uint32 GetFlags() const { return QuestFlags; }
bool IsDaily() const { return QuestFlags & QUEST_FLAGS_DAILY; }
bool IsWeekly() const { return QuestFlags & QUEST_FLAGS_WEEKLY; }
--
1.7.6.msysgit.0
@kaelima
Copy link

kaelima commented Oct 20, 2011

Should be


Method 0 = Autocomplete

@DDuarte
Copy link
Author

DDuarte commented Oct 20, 2011

Fixed, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment