Skip to content

Commit b9603cb

Browse files
authored
Merge pull request #1040 from wowsims/feature/trinket-soo-readiness-trinkets
Fix Readiness trinket for warrior
2 parents 6645e7b + 2011fc0 commit b9603cb

4 files changed

Lines changed: 43 additions & 13 deletions

File tree

sim/warrior/arms/TestArms.results

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ dps_results: {
187187
dps_results: {
188188
key: "TestArms-AllItems-EvilEyeofGalakras-105491"
189189
value: {
190-
dps: 157444.24319
191-
tps: 105253.64179
190+
dps: 158574.68794
191+
tps: 104011.3719
192192
}
193193
}
194194
dps_results: {

sim/warrior/fury/TestFury.results

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ dps_results: {
187187
dps_results: {
188188
key: "TestFury-AllItems-EvilEyeofGalakras-105491"
189189
value: {
190-
dps: 159386.80711
191-
tps: 105318.62501
190+
dps: 160286.64656
191+
tps: 105589.10704
192192
}
193193
}
194194
dps_results: {

sim/warrior/protection/TestProtectionWarrior.results

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -777,9 +777,9 @@ dps_results: {
777777
dps_results: {
778778
key: "TestProtectionWarrior-AllItems-EvilEyeofGalakras-105491"
779779
value: {
780-
dps: 124371.74306
781-
tps: 766722.2523
782-
dtps: 11979.54615
780+
dps: 120665.3866
781+
tps: 755878.76682
782+
dtps: 11852.71472
783783
}
784784
}
785785
dps_results: {

sim/warrior/talents.go

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,17 @@ func (war *Warrior) registerDragonRoar() {
101101

102102
damageMultipliers := []float64{1, 0.75, 0.65, 0.55, 0.50}
103103

104+
flags := core.SpellFlagAPL | core.SpellFlagMeleeMetrics | core.SpellFlagIgnoreArmor
105+
if war.Spec != proto.Spec_SpecProtectionWarrior {
106+
flags |= core.SpellFlagReadinessTrinket
107+
}
108+
104109
spell := war.RegisterSpell(core.SpellConfig{
105110
ActionID: actionID,
106111
SpellSchool: core.SpellSchoolPhysical,
107112
ClassSpellMask: SpellMaskDragonRoar,
108113
ProcMask: core.ProcMaskMeleeMHSpecial,
109-
Flags: core.SpellFlagAPL | core.SpellFlagMeleeMetrics | core.SpellFlagIgnoreArmor | core.SpellFlagReadinessTrinket,
114+
Flags: flags,
110115

111116
Cast: core.CastConfig{
112117
DefaultCast: core.Cast{
@@ -194,11 +199,16 @@ func (war *Warrior) registerBladestorm() {
194199
Kind: core.SpellMod_AllowCastWhileChanneling,
195200
})
196201

202+
flags := core.SpellFlagChanneled | core.SpellFlagMeleeMetrics | core.SpellFlagAPL | core.SpellFlagCastWhileChanneling
203+
if war.Spec != proto.Spec_SpecProtectionWarrior {
204+
flags |= core.SpellFlagReadinessTrinket
205+
}
206+
197207
spell := war.RegisterSpell(core.SpellConfig{
198208
ActionID: actionID.WithTag(0),
199209
SpellSchool: core.SpellSchoolPhysical,
200210
ClassSpellMask: SpellMaskBladestorm,
201-
Flags: core.SpellFlagChanneled | core.SpellFlagMeleeMetrics | core.SpellFlagAPL | core.SpellFlagCastWhileChanneling,
211+
Flags: flags,
202212
ProcMask: core.ProcMaskEmpty,
203213

204214
Cast: core.CastConfig{
@@ -251,12 +261,17 @@ func (war *Warrior) registerShockwave() {
251261
return
252262
}
253263

264+
flags := core.SpellFlagAoE | core.SpellFlagMeleeMetrics | core.SpellFlagAPL
265+
if war.Spec != proto.Spec_SpecProtectionWarrior {
266+
flags |= core.SpellFlagReadinessTrinket
267+
}
268+
254269
war.RegisterSpell(core.SpellConfig{
255270
ActionID: core.ActionID{SpellID: 46968},
256271
SpellSchool: core.SpellSchoolPhysical,
257272
ProcMask: core.ProcMaskMeleeMHSpecial,
258273
ClassSpellMask: SpellMaskShockwave,
259-
Flags: core.SpellFlagAoE | core.SpellFlagMeleeMetrics | core.SpellFlagAPL | core.SpellFlagReadinessTrinket,
274+
Flags: flags,
260275

261276
Cast: core.CastConfig{
262277
DefaultCast: core.Cast{
@@ -296,11 +311,16 @@ func (war *Warrior) registerAvatar() {
296311
Duration: 24 * time.Second,
297312
}).AttachMultiplicativePseudoStatBuff(&war.Unit.PseudoStats.DamageDealtMultiplier, 1.2)
298313

314+
flags := core.SpellFlagAPL
315+
if war.Spec != proto.Spec_SpecProtectionWarrior {
316+
flags |= core.SpellFlagReadinessTrinket
317+
}
318+
299319
avatar := war.RegisterSpell(core.SpellConfig{
300320
ActionID: actionId,
301321
SpellSchool: core.SpellSchoolPhysical,
302322
ProcMask: core.ProcMaskEmpty,
303-
Flags: core.SpellFlagAPL | core.SpellFlagReadinessTrinket,
323+
Flags: flags,
304324
ClassSpellMask: SpellMaskAvatar,
305325

306326
Cast: core.CastConfig{
@@ -361,11 +381,16 @@ func (war *Warrior) registerBloodbath() {
361381
},
362382
})
363383

384+
flags := core.SpellFlagAPL
385+
if war.Spec != proto.Spec_SpecProtectionWarrior {
386+
flags |= core.SpellFlagReadinessTrinket
387+
}
388+
364389
spell := war.RegisterSpell(core.SpellConfig{
365390
ActionID: spellActionID,
366391
SpellSchool: core.SpellSchoolPhysical,
367392
ClassSpellMask: SpellMaskBloodbath,
368-
Flags: core.SpellFlagAPL | core.SpellFlagReadinessTrinket,
393+
Flags: flags,
369394
ProcMask: core.ProcMaskEmpty,
370395

371396
Cast: core.CastConfig{
@@ -418,11 +443,16 @@ func (war *Warrior) registerStormBolt() {
418443
},
419444
})
420445

446+
flags := core.SpellFlagMeleeMetrics | core.SpellFlagAPL
447+
if war.Spec != proto.Spec_SpecProtectionWarrior {
448+
flags |= core.SpellFlagReadinessTrinket
449+
}
450+
421451
war.RegisterSpell(core.SpellConfig{
422452
ActionID: actionID.WithTag(1),
423453
SpellSchool: core.SpellSchoolPhysical,
424454
ProcMask: core.ProcMaskMeleeMHSpecial,
425-
Flags: core.SpellFlagMeleeMetrics | core.SpellFlagAPL | core.SpellFlagReadinessTrinket,
455+
Flags: flags,
426456
ClassSpellMask: SpellMaskStormBolt,
427457
MaxRange: 30,
428458

0 commit comments

Comments
 (0)