Skip to content

Commit

Permalink
add way of earth / metamorphosis restriction on timeworn pyromancy
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick committed Nov 21, 2024
1 parent a056742 commit 99e2654
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sim/common/sod/item_effects/phase_6.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/wowsims/sod/sim/common/sod"
"github.com/wowsims/sod/sim/common/vanilla"
"github.com/wowsims/sod/sim/core"
"github.com/wowsims/sod/sim/core/proto"
"github.com/wowsims/sod/sim/core/stats"
)

Expand Down Expand Up @@ -416,13 +417,18 @@ func TimewornHealing(agent core.Agent) {
}

// https://www.wowhead.com/classic/spell=1215404/timeworn-pyromancy
// Increases the effectiveness of your Fire damage spells by 3% per piece of Timeworn armor equipped.
// While Metamorphosis or Way of Earth is active, increases the effectiveness of your Fire damage spells by 3% per piece of Timeworn armor equipped.
func TimewornPyromancyAura(agent core.Agent) {
character := agent.GetCharacter()
if character.PseudoStats.TimewornBonus == 0 {
return
}

// Just applying this rune if the user has Meta or WoE
if !character.HasRuneById(int32(proto.WarlockRune_RuneHandsMetamorphosis)) && !character.HasRuneById(int32(proto.ShamanRune_RuneLegsWayOfEarth)) {
return
}

fireMultiplier := 1 + 0.03*float64(character.PseudoStats.TimewornBonus)

core.MakePermanent(character.GetOrRegisterAura(core.Aura{
Expand Down

0 comments on commit 99e2654

Please sign in to comment.