mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-03-11 13:11:50 +01:00
Fixed an issue with attack speed when holding a weapon in off hand
This commit is contained in:
parent
20d1a13f5c
commit
02da23566e
@ -74,8 +74,8 @@ public class PlayerStats {
|
||||
Type type = item.getItem().getType();
|
||||
ModifierSource source = type == null ? ModifierSource.OTHER : type.getItemSet().getModifierSource();
|
||||
|
||||
// Apply main hand weapon stat offset
|
||||
if (item.getSlot() == EquipmentSlot.MAIN_HAND && stat instanceof AttackWeaponStat)
|
||||
// Apply hand weapon stat offset
|
||||
if (item.getSlot().isHand() && stat instanceof AttackWeaponStat)
|
||||
value -= ((AttackWeaponStat) stat).getOffset(playerData);
|
||||
|
||||
packet.addModifier(new StatModifier("MMOItem-" + index++, stat.getId(), value, ModifierType.FLAT, item.getSlot(), source));
|
||||
|
Loading…
Reference in New Issue
Block a user