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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user