From 46b9942f97b5ca4b14fba865b6f60dba61245b03 Mon Sep 17 00:00:00 2001 From: QAston Date: Fri, 10 Feb 2012 18:49:40 +0100 Subject: Core/Db/Conditions: remove ConditionValue2 parameter CONDITION_SPELL which was used for checking if player doesn't have spell and use NegativeCondition parameter instead. --- src/server/game/Conditions/ConditionMgr.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/server/game/Conditions/ConditionMgr.cpp') diff --git a/src/server/game/Conditions/ConditionMgr.cpp b/src/server/game/Conditions/ConditionMgr.cpp index a150586f3d5..977657a985c 100755 --- a/src/server/game/Conditions/ConditionMgr.cpp +++ b/src/server/game/Conditions/ConditionMgr.cpp @@ -209,12 +209,7 @@ bool Condition::Meets(WorldObject* object, WorldObject* invoker) case CONDITION_SPELL: { if (Player* player = object->ToPlayer()) - { - if (mConditionValue2 == 1) - condMeets = player->HasSpell(mConditionValue1); - else - condMeets = !player->HasSpell(mConditionValue1); - } + condMeets = player->HasSpell(mConditionValue1); break; } case CONDITION_LEVEL: -- cgit v1.2.3