Skip to content

Commit

Permalink
add naglering effect
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick committed Jan 12, 2025
1 parent edcf066 commit 3a750ee
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sim/common/sod/item_effects/phase_7.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func init() {
})

core.MakePermanent(character.GetOrRegisterAura(core.Aura{
Label: "Splintered Shieldd",
Label: "Splintered Shield",
OnSpellHitTaken: func(aura *core.Aura, sim *core.Simulation, spell *core.Spell, result *core.SpellResult) {
if result.Landed() && spell.ProcMask.Matches(core.ProcMaskMelee) {
procSpell.Cast(sim, spell.Unit)
Expand Down
31 changes: 31 additions & 0 deletions sim/common/vanilla/item_effects.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const (
Firebreather = 10797
VilerendSlicer = 11603
HookfangShanker = 11635
Naglering = 11669
LinkensSwordOfMastery = 11902
SearingNeedle = 12531
PipsSkinner = 12709
Expand Down Expand Up @@ -2898,6 +2899,36 @@ func init() {
BlazefuryTriggerAura(character, 7712, core.SpellSchoolFire, 2)
})

// https://www.wowhead.com/classic/item=11669/naglering
// When struck in combat inflicts 3 Arcane damage to the attacker.
core.NewItemEffect(Naglering, func(agent core.Agent) {
character := agent.GetCharacter()
character.PseudoStats.ThornsDamage += 3

procSpell := character.RegisterSpell(core.SpellConfig{
ActionID: core.ActionID{ItemID: Naglering},
SpellSchool: core.SpellSchoolArcane,
ProcMask: core.ProcMaskEmpty,
Flags: core.SpellFlagBinary | core.SpellFlagNoOnCastComplete | core.SpellFlagPassiveSpell,

DamageMultiplier: 1,
ThreatMultiplier: 1,

ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) {
spell.CalcAndDealDamage(sim, target, 3, spell.OutcomeMagicHit)
},
})

core.MakePermanent(character.GetOrRegisterAura(core.Aura{
Label: "Thorns (Naglering)",
OnSpellHitTaken: func(aura *core.Aura, sim *core.Simulation, spell *core.Spell, result *core.SpellResult) {
if result.Landed() && spell.ProcMask.Matches(core.ProcMaskMelee) {
procSpell.Cast(sim, spell.Unit)
}
},
}))
})

// https://www.wowhead.com/classic/item=1168/skullflame-shield
// Equip: When struck in combat has a 3% chance of stealing 35 life from target enemy. (Proc chance: 3%)
// Equip: When struck in combat has a 1% chance of dealing 75 to 125 Fire damage to all targets around you. (Proc chance: 1%)
Expand Down

0 comments on commit 3a750ee

Please sign in to comment.