aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2013-02-26 17:14:13 +0100
committerShauren <shauren.trinity@gmail.com>2013-02-26 17:14:13 +0100
commitaf4ac778d7f47e4ab20c042009cb8bbd9c41d94b (patch)
tree509522e290a47563cfafde66ce2f3b5929e5098e /src/server/scripts
parente3e5d14d52da6ab6005f28acca6492ff805fe6a0 (diff)
Core/Quests: Implemented quest flag forcing the player to be flagged for PvP as long as the quest is in his log.
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Commands/cs_quest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/scripts/Commands/cs_quest.cpp b/src/server/scripts/Commands/cs_quest.cpp
index e10cf883518..e0d67b55989 100644
--- a/src/server/scripts/Commands/cs_quest.cpp
+++ b/src/server/scripts/Commands/cs_quest.cpp
@@ -138,6 +138,12 @@ public:
// we ignore unequippable quest items in this case, its' still be equipped
player->TakeQuestSourceItem(logQuest, false);
+
+ if (quest->HasFlag(QUEST_FLAGS_FLAGS_PVP))
+ {
+ player->pvpInfo.IsHostile = player->pvpInfo.IsInHostileArea || player->HasPvPForcingQuest();
+ player->UpdatePvPState();
+ }
}
}