[10013] Implement CONDITION_QUESTTARGET

For cases when loot dependent from some quest objective complete state.
This commit is contained in:
VladimirMangos 2010-06-01 01:10:51 +04:00
parent f9df9d6226
commit 59367bc19f
5 changed files with 71 additions and 2 deletions

View file

@ -317,9 +317,10 @@ enum ConditionType
CONDITION_NOITEM = 16, // item_id count
CONDITION_SPELL = 17, // spell_id 0, 1 (0: has spell, 1: hasn't spell)
CONDITION_INSTANCE_SCRIPT = 18, // map_id instance_condition_id (instance script specific enum)
CONDITION_QUESTTARGET = 19, // entry complete,for condition true entry (positive - creature entry, negative (-entry) - gameobject entry) is not rewarded quest objective in (completed, bool) state.
};
#define MAX_CONDITION 19 // maximum value in ConditionType enum
#define MAX_CONDITION 20 // maximum value in ConditionType enum
struct PlayerCondition
{