mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[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:
parent
4ad879a3da
commit
1606bb2e45
4 changed files with 20 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue