DFreds/dfreds-convenient-effects

[BUG] Prone applies advantage to thrown weapons at range

GhostwheelX opened this issue · 1 comments

Describe the bug
Prone causes thrown melee weapons to be made at advantage.

To Reproduce

  1. Apply prone to a creature.
  2. Make a melee weapon attack at range the creature using a weapon with the thrown property.

Expected behavior
The attack should be at disadvantage, but instead it's at advantage as though the creature was in melee.

I assume this is when using midi? Prone should be working correctly based on the midi flags, so I'm going to guess it's a midi bug.

      changes: [
        {
          key: `flags.${this._flagPrefix}.grants.advantage.attack.mwak`,
          mode: CONST.ACTIVE_EFFECT_MODES.CUSTOM,
          value: '1',
        },
        {
          key: `flags.${this._flagPrefix}.grants.advantage.attack.msak`,
          mode: CONST.ACTIVE_EFFECT_MODES.CUSTOM,
          value: '1',
        },
        {
          key: `flags.${this._flagPrefix}.grants.disadvantage.attack.rwak`,
          mode: CONST.ACTIVE_EFFECT_MODES.CUSTOM,
          value: '1',
        },
        {
          key: `flags.${this._flagPrefix}.grants.disadvantage.attack.rsak`,
          mode: CONST.ACTIVE_EFFECT_MODES.CUSTOM,
          value: '1',
        },
        {
          key: `flags.${this._flagPrefix}.disadvantage.attack.all`,
          mode: CONST.ACTIVE_EFFECT_MODES.CUSTOM,
          value: '1',
        },
        {
          key: 'system.attributes.movement.all',
          mode: CONST.ACTIVE_EFFECT_MODES.CUSTOM,
          value: '*0.5',
          priority: 25,
        },
      ],