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:
1 parent
e3e5d14d52
commit
af4ac778d7
8 files changed
+85
-29
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user