-
Notifications
You must be signed in to change notification settings - Fork 47
combat_condition
Back to world database list of tables.
Official table structure - used for combat condition checks on units for creature_spell_list
Contains complex checks for executing combat events.
Field | Type | NULL | Key | Default | Comments |
---|---|---|---|---|---|
Id | int(11) unsigned | NO | PRIMARY | 0 | Primary Key |
WorldStateExpressionID | int(11) unsigned | NO | 0 | ||
SelfConditionID | int(11) unsigned | NO | 0 | ||
TargetConditionID | int(11) unsigned | NO | 0 | ||
FriendConditionLogic | int(11) unsigned | NO | 0 | ||
EnemyConditionLogic | int(11) unsigned | NO | 0 | ||
FriendConditionID_0 | int(11) unsigned | NO | 0 | ||
FriendConditionID_1 | int(11) unsigned | NO | 0 | ||
FriendConditionOp_0 | int(11) unsigned | NO | 0 | ||
FriendConditionOp_1 | int(11) unsigned | NO | 0 | ||
FriendConditionCount_0 | int(11) unsigned | NO | 0 | ||
FriendConditionCount_1 | int(11) unsigned | NO | 0 | ||
EnemyConditionID_0 | int(11) unsigned | NO | 0 | ||
EnemyConditionID_1 | int(11) unsigned | NO | 0 | ||
EnemyConditionOp_0 | int(11) unsigned | NO | 0 | ||
EnemyConditionOp_1 | int(11) unsigned | NO | 0 | ||
EnemyConditionCount_0 | int(11) unsigned | NO | 0 | ||
EnemyConditionCount_1 | int(11) unsigned | NO | 0 |
Numeric identifier
unit_condition.Id - Condition executed against source
unit_condition.Id - Condition executed against target of source
enum class ConditionLogic (NONE - 0, AND - 1, OR - 2, XOR - 3)
Used against condition 0 and 1 of friend/enemy. If NONE, only cond 0 is evaluated.
unit_condition.Id - Condition executed against friend (picked in range of spell) or enemy (taken from threat list)
enum class ConditionOperation
NONE = 0,
EQUAL_TO = 1,
NOT_EQUAL_TO = 2,
LESS_THAN = 3,
LESS_THAN_OR_EQUAL_TO = 4,
GREATER_THAN = 5,
GREATER_THAN_OR_EQUAL_TO = 6,
See count explanation below
Compares number of eligible targets, either friendly or enemy that fulfilled condition respectively with corresponding operation against Count