Core/ConditionMgr: small cleanup, small fix

--HG--
branch : trunk
This commit is contained in:
Rat
2010-09-20 22:11:55 +02:00
parent cf93313316
commit 8e6ba6e7c9
2 changed files with 7 additions and 9 deletions
+4 -6
View File
@@ -54,11 +54,10 @@ enum ConditionType
CONDITION_MAPID = 22, // map_id 0 +referenceID true if in map_id
CONDITION_AREAID = 23, // area_id 0 +referenceID true if in area_id
CONDITION_ITEM_TARGET = 24, // ItemRequiredTargetType, TargetEntry, 0
CONDITION_SPELL = 25 // spell_id 0 +referenceID true if knows spell
CONDITION_SPELL = 25, // spell_id 0 +referenceID true if knows spell
CONDITION_MAX = 26 // MAX
};
#define MAX_CONDITION 25 // maximum value in ConditionType enum
enum ConditionSourceType
{
CONDITION_SOURCE_TYPE_NONE = 0,//DONE
@@ -81,11 +80,10 @@ enum ConditionSourceType
CONDITION_SOURCE_TYPE_SPELL = 17,//DONE
CONDITION_SOURCE_TYPE_ITEM_REQUIRED_TARGET = 18,//DONE
CONDITION_SOURCE_TYPE_QUEST_ACCEPT = 19,//DONE
CONDITION_SOURCE_TYPE_QUEST_SHOW_MARK = 20//DONE
CONDITION_SOURCE_TYPE_QUEST_SHOW_MARK = 20,//DONE
CONDITION_SOURCE_TYPE_MAX = 21//MAX
};
#define MAX_CONDITIONSOURCETYPE 21
struct Condition
{
ConditionSourceType mSourceType; //SourceTypeOrReferenceId