Core/Quests: Implemented quest flag forcing the player to be flagged for PvP as long as the quest is in his log.

This commit is contained in:
Shauren committed 2013-02-26 17:14:13 +01:00
1 parent e3e5d14d52
commit af4ac778d7
8 files changed
+85 -29

No files matched your search

+6
View File
@@ -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();
}
}
}