diff options
author | Brian <runningnak3d@gmail.com> | 2010-02-16 21:21:52 -0700 |
---|---|---|
committer | Brian <runningnak3d@gmail.com> | 2010-02-16 21:21:52 -0700 |
commit | 8930098acbf86a8d1cdc75887b9d38718d6e27aa (patch) | |
tree | 9e2f369e99d675f4ec9096606cf23851a80ba773 /src/game/ObjectMgr.cpp | |
parent | 205a024d013553afe988b04b419722fac5ab1665 (diff) |
* Add support for CONDITION_QUEST_NONE (14) as a loot condition and gossip
* condition. If set the player must never have taken or completed the quest
* listed in value1
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r-- | src/game/ObjectMgr.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index c83026c946e..13f991cd5a3 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -7612,6 +7612,11 @@ bool PlayerCondition::Meets(Player const * player) const QuestStatus status = player->GetQuestStatus(value1); return (status == QUEST_STATUS_INCOMPLETE); } + case CONDITION_QUEST_NONE: + { + QuestStatus status = player->GetQuestStatus(value1); + return (status == QUEST_STATUS_NONE); + } case CONDITION_AD_COMMISSION_AURA: { Unit::AuraApplicationMap const& auras = player->GetAppliedAuras(); |