Defense | AdvancedAbilities - Ability [Add-on] [StatsAbilities] 1.0

YAML ability

  1. Particlees

    Reduce damage caused by an entity!

    2019-02-04_14.35.53.png

    Code (Text):
    creator:
      events:
        '1':
          event: DamageByEntityEvent
          conditions: []
          effects:
          - 'GREATER_THAN=0,{EVENT_DAMAGE}-{ABILITY_LEVEL;strength}*0.2!IGNORE_CHECK:EVENT_DAMAGE=0!IGNORE_CHECK'
          - 'GREATER_THAN=0,{EVENT_DAMAGE}-{ABILITY_LEVEL;strength}*0.2!IGNORE_CHECK!INVERSE:EVENT_DAMAGE={EVENT_DAMAGE}-{ABILITY_LEVEL;strength}*0.2!IGNORE_CHECK'
          options:
          - 'ACTION_BAR_MESSAGE'
          secondary_events: []