Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Runtime Docs Version 2.0.77

# LuaSegmentedUnitDamagedEventFilter - Runtime Docs

## LuaSegmentedUnitDamagedEventFilter :: table

#### Table fields

filter | :: `"name"` or `"original-damage-amount"` or `"final-damage-amount"` or `"damage-type"` or `"final-health"` | The condition to filter on.
The condition to filter on.
mode | :: `"or"` or `"and"`? | How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
invert | :: boolean? | Inverts the condition. Default is `false`.
Inverts the condition. Default is `false`.

Other attributes may be specified depending on `filter`:

#### `name`

name | :: string | The prototype name
The prototype name

#### `original-damage-amount`

comparison | :: ComparatorString |
value | :: float | The value to compare against.
The value to compare against.

#### `final-damage-amount`

comparison | :: ComparatorString |
value | :: float | The value to compare against.
The value to compare against.

#### `damage-type`

type | :: string | A LuaDamagePrototype name.
A LuaDamagePrototype name.

#### `final-health`

comparison | :: ComparatorString |
value | :: float | The value to compare against.
The value to compare against.

Concept used in

- EventFilter