Skip to content

Commit

Permalink
Merge pull request #1247 from wowsims/fix/warlock-felguard-spell-haste
Browse files Browse the repository at this point in the history
[WARLOCK] DS:FG Change CastTime mod to CastSpeed
  • Loading branch information
1337LutZ authored Dec 4, 2024
2 parents c504b44 + 9588ae7 commit f52408b
Show file tree
Hide file tree
Showing 2 changed files with 750 additions and 755 deletions.
11 changes: 3 additions & 8 deletions sim/warlock/demon_soul.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,7 @@ func (warlock *Warlock) registerDemonSoul() {
},
})

felguardHasteMod := warlock.AddDynamicMod(core.SpellModConfig{
Kind: core.SpellMod_CastTime_Pct,
ClassMask: WarlockFireDamage | WarlockShadowDamage,
FloatValue: -0.15,
})

felguardHasteMulti := 1.15
felguardDamageMod := warlock.AddDynamicMod(core.SpellModConfig{
Kind: core.SpellMod_DamageDone_Pct,
School: core.SpellSchoolShadow | core.SpellSchoolFire,
Expand All @@ -62,11 +57,11 @@ func (warlock *Warlock) registerDemonSoul() {
ActionID: core.ActionID{SpellID: 79462},
Duration: 20 * time.Second,
OnGain: func(aura *core.Aura, sim *core.Simulation) {
felguardHasteMod.Activate()
warlock.MultiplyCastSpeed(felguardHasteMulti)
felguardDamageMod.Activate()
},
OnExpire: func(aura *core.Aura, sim *core.Simulation) {
felguardHasteMod.Deactivate()
warlock.MultiplyCastSpeed(1 / felguardHasteMulti)
felguardDamageMod.Deactivate()
},
})
Expand Down
Loading

0 comments on commit f52408b

Please sign in to comment.