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
@@ -5041,6 +5041,12 @@ void Spell::EffectQuestClear(SpellEffIndex effIndex)
|
||||
|
||||
// we ignore unequippable quest items in this case, it's 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