mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user