Modify Damage Dealt (Power Type)

Modifies how much mêlée damage the entity that has the power deals.

Modifies how much mêlée damage the entity that has the power deals.

Type ID: apoli:modify_damage_dealt

In the context of this power type, the ’actor’ entity is the entity that has the power whilst the ’target’ entity is the entity that was hit.

Fields

FieldTypeDefaultDescription
bientity_actionBi-entity Action TypeoptionalIf specified, this action will be executed on either or both the ’actor’ and ’target’ entities whenever the modifier(s) is/are applied.
self_actionEntity Action TypeoptionalIf specified, this action will be executed on the ’actor’ entity whenever the modifier(s) is/are applied.
target_actionEntity Action TypeoptionalIf specified, this action will be executed on the ’target’ entity whenever the modifier(s) is/are applied.
bientity_conditionBi-entity Condition TypeoptionalIf specified, the specified action(s)/modifier(s) will only be executed/applied if this condition is fulfilled by either or both ’actor’ and ’target’ entities.
target_conditionEntity Condition TypeoptionalIf specified, the specified actions/modifiers will only be executed/applied if this condition is fulfilled by the ’target’ entity.
damage_conditionDamage Condition TypeoptionalIf specified, the specified actions/modifiers will only be executed/applied if this condition is fulfilled by the damage dealt by the ’actor’ entity.
modifierAttribute ModifieroptionalIf specified, this modifier will be applied to the damage dealt by the ’actor’ entity.
modifiersArray of Attribute ModifiersoptionalIf specified, these modifiers will be applied t othe damage dealt by the ’actor’ entity.

Examples

{
    "type": "apoli:modify_damage_dealt",
    "bientity_condition": {
        "type": "apoli:owner"
    },
    "modifier": {
        "operation": "multiply_total",
        "value": -1
    }
}

This example will nullify the damage dealt to an entity if that entity is owned by the entity that has the power. (Essentially, dealing no damage to one’s pets and such.)