[11822] Add more functionality to CONDITION_QUESTTAKEN

Add options 1/ 2 in second argument to check if a quest is INCOMPLETE/ COMPLETE, default will behave like currently

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
PSZ 2011-10-14 18:05:17 +02:00 committed by Schmoozerd
parent 4ad879a3da
commit 1606bb2e45
4 changed files with 20 additions and 6 deletions

View file

@ -7503,7 +7503,7 @@ bool PlayerCondition::Meets(Player const * player) const
return player->GetQuestRewardStatus(value1);
case CONDITION_QUESTTAKEN:
{
return player->IsCurrentQuest(value1);
return player->IsCurrentQuest(value1, value2);
}
case CONDITION_AD_COMMISSION_AURA:
{
@ -7770,7 +7770,7 @@ bool PlayerCondition::IsValid(ConditionType condition, uint32 value1, uint32 val
return false;
}
if (value2)
if (value2 && condition != CONDITION_QUESTTAKEN)
sLog.outErrorDb("Quest condition (%u) has useless data in value2 (%u)!", condition, value2);
break;
}