Skip to content

Commit

Permalink
Modified peregrine off-hand attack to work the way zirene described
Browse files Browse the repository at this point in the history
  • Loading branch information
ncberman committed Sep 22, 2024
1 parent 5d72450 commit 3d938f8
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 902 deletions.
19 changes: 17 additions & 2 deletions sim/hunter/items.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,24 @@ func init() {

// https://www.wowhead.com/classic/item=231755/peregrine
// Chance on hit: Instantly gain 1 extra attack with both weapons.
// TODO: Proc rate assumed and needs testing
// Main-hand attack is treated like a normal extra-attack, Off-hand attack is a spell that uses your off-hand damage but won't glance
core.NewItemEffect(Peregrine, func(agent core.Agent) {
character := agent.GetCharacter()
peregrineOHAttack := character.RegisterSpell(core.SpellConfig{
ActionID: core.ActionID{SpellID: 469140},
SpellSchool: core.SpellSchoolPhysical,
DefenseType: core.DefenseTypeMelee,
ProcMask: core.ProcMaskMeleeOHSpecial,
Flags: core.SpellFlagMeleeMetrics,

DamageMultiplier: 1,
ThreatMultiplier: 1,

ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) {
damage := character.OHWeaponDamage(sim, spell.MeleeAttackPower()) * character.AutoAttacks.OHConfig().DamageMultiplier
spell.CalcAndDealDamage(sim, target, damage, spell.OutcomeMeleeWeaponSpecialHitAndCrit)
},
})
core.MakeProcTriggerAura(&character.Unit, core.ProcTrigger{
Name: "Peregrine Trigger",
Callback: core.CallbackOnSpellHitDealt,
Expand All @@ -359,7 +374,7 @@ func init() {
PPM: 1.0,
Handler: func(sim *core.Simulation, spell *core.Spell, result *core.SpellResult) {
character.AutoAttacks.ExtraMHAttackProc(sim, 1, core.ActionID{SpellID: 469140}, spell)
character.AutoAttacks.ExtraOHAttack(sim, 1, core.ActionID{SpellID: 469140}, spell.ActionID)
peregrineOHAttack.Cast(sim, result.Target)
},
})
})
Expand Down
266 changes: 0 additions & 266 deletions sim/paladin/retribution/TestExodinP4.results

This file was deleted.

Loading

0 comments on commit 3d938f8

Please sign in to comment.