diff options
author | Supabad <supabad.trinity@gmail.com> | 2011-04-09 10:23:54 +0200 |
---|---|---|
committer | Supabad <supabad.trinity@gmail.com> | 2011-04-09 10:23:54 +0200 |
commit | baedc78b10d067009cf9a08af97cbdaf078586ed (patch) | |
tree | ef370c8da3d9b824d657bb142f237d8576ea96ed /src | |
parent | 6174703d450204adf5f7e708ebf2a94d8f4ae2d7 (diff) |
Core/Conditions: fix little typo in previous commit.
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Conditions/ConditionMgr.cpp | 2 | ||||
-rwxr-xr-x | src/server/game/Conditions/ConditionMgr.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Conditions/ConditionMgr.cpp b/src/server/game/Conditions/ConditionMgr.cpp index c8013179956..3c084f47b05 100755 --- a/src/server/game/Conditions/ConditionMgr.cpp +++ b/src/server/game/Conditions/ConditionMgr.cpp @@ -158,7 +158,7 @@ bool Condition::Meets(Player * player, Unit* invoker) break; } case CONDITION_SPELL: - if (mConditionValue2 == 0) + if (mConditionValue2 == 1) condMeets = player->HasSpell(mConditionValue1); else condMeets = !player->HasSpell(mConditionValue1); diff --git a/src/server/game/Conditions/ConditionMgr.h b/src/server/game/Conditions/ConditionMgr.h index 9659ff89aff..6a1dbb8fa92 100755 --- a/src/server/game/Conditions/ConditionMgr.h +++ b/src/server/game/Conditions/ConditionMgr.h @@ -52,7 +52,7 @@ 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 bool +referenceID bool 0 for true 1 for false + CONDITION_SPELL = 25, // spell_id bool +referenceID bool 1 for true 0 for false CONDITION_NOITEM = 26, // item_id bank +referenceID true if player does not have any of the item (if 'bank' is set it searches in bank slots too) CONDITION_LEVEL = 27, // level opt +referenceID true if player's level is equal to param1 (param2 can modify the statement) CONDITION_QUEST_COMPLETE = 28, // quest_id 0 +referenceID true if player has quest_id with all objectives complete, but not yet rewarded |