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
2013-02-26 17:14:13 +01:00
parent e3e5d14d52
commit af4ac778d7
8 changed files with 85 additions and 29 deletions

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();
}
}
}