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.

(cherry picked from commit cd36606027)
This commit is contained in:
Ovah
2018-09-02 12:36:16 +02:00
committed by Shauren
parent 5424a787ca
commit def2e699b0

View File

@@ -25205,7 +25205,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)