Bug Closed · Resolved

Attack speed stat does not correctly affect the attack speed of items

#5074 opened by Unknown 2 years ago

Unknownreported this bug

Summary

Setting the player's attack speed stat does not correctly modify the attack speed of the item they're holding.

Steps to reproduce

https://pastebin.com/7TFprK9G Making an item like such to set the player's attack speed when they're holding it.

Current behavior

Holding the item will correctly set the player's attack speed stat to 1.0 (confirmed through placeholders) but the weapon itself will have -1.4 attack speed.

Intended correct behavior

The weapon's attack speed should also be 1.0.

Unknowncommented

I think this has been fixed but reopen if it isn't

Unknowncommented

Unfortunately the latest dev build did not seem to fix the issue, here is some extra info:

This is the sword that I am using to test it:

TestSword:
  Id: wooden_sword
  Display: <gray>Warrior's Sword
  Model: 1
  Generation: item/warriors_sword
  Stats: 
  - ATTACK_DAMAGE 9 SETTER
  - ATTACK_SPEED 1.0 SETTER
  - CRITICAL_STRIKE_CHANCE 0.25 SETTER
  - CRITICAL_STRIKE_DAMAGE 0.56 SETTER

When you are not holding the sword, hovering over the sword says that it has 1.6 attack speed (as the default wooden sword does), but when you hold it, it turns into -1.4.

Unknowncommented

Closing due to inactivity - if this is still a relevant issue, please re-open with a modern-version server log and a configuration with the steps to confirm this issue is still present.

Sign in to join the discussion.