Skip to content

Commit f2eb0cf

Browse files
authored
Merge pull request #356 from wowsims/fix/rogue
Stones actually don't care about weapon types
2 parents 537966c + 4142558 commit f2eb0cf

3 files changed

Lines changed: 1035 additions & 1038 deletions

File tree

sim/core/consumes.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package core
22

33
import (
4-
"slices"
54
"time"
65

76
"github.com/wowsims/tbc/sim/core/proto"
@@ -688,20 +687,19 @@ func registerStaticImbue(agent Agent, imbueId int32, isMH bool) {
688687
character.AddStat(stats.SpellDamage, 42)
689688
case 29453: // Addy Sharpstone
690689
character.AddStat(stats.MeleeCritRating, 14)
691-
sharpTypes := []proto.WeaponType{proto.WeaponType_WeaponTypeAxe, proto.WeaponType_WeaponTypeDagger, proto.WeaponType_WeaponTypeSword}
692690
if isMH {
693691
character.AutoAttacks.MH().BaseDamageMax += 12
694692
character.AutoAttacks.MH().BaseDamageMin += 12
695693

696-
if character.AutoAttacks.OH() != nil && slices.Contains(sharpTypes, character.GetItemBySlot(proto.ItemSlot_ItemSlotOffHand).WeaponType) {
694+
if character.AutoAttacks.OH() != nil {
697695
character.AutoAttacks.OH().BaseDamageMax += 12
698696
character.AutoAttacks.OH().BaseDamageMin += 12
699697
}
700698
} else {
701699
character.AutoAttacks.OH().BaseDamageMax += 12
702700
character.AutoAttacks.OH().BaseDamageMin += 12
703701

704-
if character.AutoAttacks.MH() != nil && slices.Contains(sharpTypes, character.GetItemBySlot(proto.ItemSlot_ItemSlotMainHand).WeaponType) {
702+
if character.AutoAttacks.MH() != nil {
705703
character.AutoAttacks.MH().BaseDamageMax += 12
706704
character.AutoAttacks.MH().BaseDamageMin += 12
707705
}
@@ -715,20 +713,19 @@ func registerStaticImbue(agent Agent, imbueId int32, isMH bool) {
715713

716714
case 34340: // Addy Weightstone
717715
character.AddStat(stats.MeleeCritRating, 14)
718-
sharpTypes := []proto.WeaponType{proto.WeaponType_WeaponTypeAxe, proto.WeaponType_WeaponTypeDagger, proto.WeaponType_WeaponTypeSword}
719716
if isMH {
720717
character.AutoAttacks.MH().BaseDamageMax += 12
721718
character.AutoAttacks.MH().BaseDamageMin += 12
722719

723-
if character.AutoAttacks.OH() != nil && !slices.Contains(sharpTypes, character.GetItemBySlot(proto.ItemSlot_ItemSlotOffHand).WeaponType) {
720+
if character.AutoAttacks.OH() != nil {
724721
character.AutoAttacks.OH().BaseDamageMax += 12
725722
character.AutoAttacks.OH().BaseDamageMin += 12
726723
}
727724
} else {
728725
character.AutoAttacks.OH().BaseDamageMax += 12
729726
character.AutoAttacks.OH().BaseDamageMin += 12
730727

731-
if character.AutoAttacks.MH() != nil && !slices.Contains(sharpTypes, character.GetItemBySlot(proto.ItemSlot_ItemSlotMainHand).WeaponType) {
728+
if character.AutoAttacks.MH() != nil {
732729
character.AutoAttacks.MH().BaseDamageMax += 12
733730
character.AutoAttacks.MH().BaseDamageMin += 12
734731
}

0 commit comments

Comments
 (0)