Core/Conditions: allow CONDITION_QUEST_COMPLETE to handle spellclick conditions (#22371)

This is a needed change in order to make spellclicks functional that are only available when you have a already completed quest.
This commit is contained in:
Ovah
2018-09-02 12:36:16 +02:00
committed by Shauren
parent 9ace4093d8
commit cd36606027

View File

@@ -23307,7 +23307,7 @@ void Player::UpdateForQuestWorldObjects()
{
bool buildUpdateBlock = false;
for (ConditionContainer::const_iterator jtr = conds->begin(); jtr != conds->end() && !buildUpdateBlock; ++jtr)
if ((*jtr)->ConditionType == CONDITION_QUESTREWARDED || (*jtr)->ConditionType == CONDITION_QUESTTAKEN)
if ((*jtr)->ConditionType == CONDITION_QUESTREWARDED || (*jtr)->ConditionType == CONDITION_QUESTTAKEN || (*jtr)->ConditionType == CONDITION_QUEST_COMPLETE)
buildUpdateBlock = true;
if (buildUpdateBlock)