Core/Db/Conditions: Add NegativeCondition column to conditions table which allows to check whenever player does not meet condition specified by ConditionTypeOrReference column (ConditionTypeOrReference and ConditionValue3 set to reference id are not affected by the change)

This commit is contained in:
QAston
2012-02-10 12:46:01 +01:00
parent 03b2717931
commit a7fc2586e7
3 changed files with 11 additions and 2 deletions
@@ -114,6 +114,7 @@ struct Condition
uint32 ErrorTextd;
uint32 mReferenceId;
uint32 mScriptId;
bool mNegativeCondition;
Condition()
{
@@ -128,6 +129,7 @@ struct Condition
mReferenceId = 0;
ErrorTextd = 0;
mScriptId = 0;
mNegativeCondition = false;
}
bool Meets(Player* player, Unit* invoker = NULL);