Skip to content

Commit

Permalink
skullflame shield drain life scale with spell power
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick committed Jan 12, 2025
1 parent 45cbddd commit 8f65582
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions sim/common/item_effects.go
Original file line number Diff line number Diff line change
Expand Up @@ -2831,24 +2831,32 @@ func init() {
drainLifeActionID := core.ActionID{SpellID: 18817}
healthMetrics := character.NewHealthMetrics(drainLifeActionID)
drainLifeSpell := character.RegisterSpell(core.SpellConfig{
ActionID: drainLifeActionID,
SpellSchool: core.SpellSchoolShadow,
DefenseType: core.DefenseTypeMagic,
ProcMask: core.ProcMaskEmpty,
ActionID: drainLifeActionID,
SpellSchool: core.SpellSchoolShadow,
DefenseType: core.DefenseTypeMagic,
ProcMask: core.ProcMaskEmpty,
Flags: core.SpellFlagNoOnCastComplete | core.SpellFlagPassiveSpell,

DamageMultiplier: 1,
ThreatMultiplier: 1,
BonusCoefficient: 1,

ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) {
result := spell.CalcAndDealDamage(sim, target, 35, spell.OutcomeAlwaysHit)
character.GainHealth(sim, result.Damage, healthMetrics)
},
})

flamestrikeSpell := character.RegisterSpell(core.SpellConfig{
ActionID: core.ActionID{SpellID: 18818},
SpellSchool: core.SpellSchoolFire,
DefenseType: core.DefenseTypeMagic,
ProcMask: core.ProcMaskEmpty,
ActionID: core.ActionID{SpellID: 18818},
SpellSchool: core.SpellSchoolFire,
DefenseType: core.DefenseTypeMagic,
ProcMask: core.ProcMaskEmpty,
Flags: core.SpellFlagNoOnCastComplete | core.SpellFlagPassiveSpell,

DamageMultiplier: 1,
ThreatMultiplier: 1,

ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) {
for _, aoeTarget := range sim.Encounter.TargetUnits {
spell.CalcAndDealDamage(sim, aoeTarget, sim.Roll(75, 125), spell.OutcomeMagicHit)
Expand Down

0 comments on commit 8f65582

Please sign in to comment.