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 authored and Aokromes committed 2018-09-02 21:59:08 +02:00
1 parent ee8f5f0748
commit 052cbbf952
1 file changed
+1 -1
+1 -1
View File
@@ -24051,7 +24051,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)