Skip to main content

Effect Attribute Eliminator

The Effect Attribute Eliminator Processor removes Effect Attributes before the Effect continues through the processing pipeline.

This can be used to disable specific mechanics without blocking the entire Effect.

For example:

  • Prevent an Effect from becoming a Critical Hit by removing the Critable Effect Attribute.
  • Since the Critical Hit Processor requires the Critable Attribute, it will simply skip processing the Effect.

Implementation

Effect Attributes are implemented as a bit flag enum. Each Effect Attribute is assigned a power-of-two value.

For example:

Effect AttributeValue
Stoppable1 (2⁰)
Directable2 (2¹)
Counterable4 (2²)

If an Effect contains all three attributes, its combined Attributes value is 7.

To eliminate one or more attributes, the Processor resolves an Int Stat called the Effect Attribute Eliminator. The integer value stored by this Stat represents the bit flags to remove. The Processor clears those flags from the Effect's current Attributes value to produce the final set of Effect Attributes.

Effect Attribute elimination is evaluated separately for the Source Actor and the Target Actor.

The Effect Attribute Eliminator Stat is resolved as follows:

Base Stat (BS) Processors

  • For the Target Actor, the Eliminator Stat is obtained directly from the Target Stat's EffectAttributeEliminator Relative Stat.
  • For the Source Actor, the Eliminator Stat is obtained from the Source Actor using the Stat Key referenced by the Target Stat's EffectAttributeEliminator Relative Key.

Attribute Stat (AS) / Multi Attribute Stat (MAS) Processors

  • For the Target Actor, the Eliminator Stat is obtained from the Target Actor using the Stat Key referenced by the Attribute Stat's EffectAttributeEliminator Relative Key.
  • For the Source Actor, the Eliminator Stat is obtained directly from the Attribute Stat's EffectAttributeEliminator Relative Stat, since the Attribute Stat already belongs to the Source Actor.

The resolved Stat must be an Int Stat.