@@ -619,73 +619,6 @@ func (priest *Priest) applySinAndPunishment() {
619619 })
620620}
621621
622- func (priest * Priest ) applyShadowyApparition () {
623- if priest .Talents .ShadowyApparition == 0 {
624- return
625- }
626-
627- const spellScaling = 0.515
628- const levelScaling = 0.514
629-
630- spell := priest .RegisterSpell (core.SpellConfig {
631- ActionID : core.ActionID {SpellID : 87532 },
632- MissileSpeed : 3.5 ,
633- ProcMask : core .ProcMaskEmpty , // summoned guardian, should not be able to proc stuff - verify
634- ClassSpellMask : PriestSpellShadowyApparation ,
635- Flags : core .SpellFlagPassiveSpell ,
636- DamageMultiplier : 1 ,
637- DamageMultiplierAdditive : 1 ,
638- CritMultiplier : priest .DefaultCritMultiplier (),
639- SpellSchool : core .SpellSchoolShadow ,
640-
641- BonusCoefficient : spellScaling ,
642-
643- ApplyEffects : func (sim * core.Simulation , target * core.Unit , spell * core.Spell ) {
644- baseDamage := priest .ClassSpellScaling * levelScaling
645-
646- // snapshot values on spawn
647- dmgMulti := spell .DamageMultiplier
648- dmgMultiAdd := spell .DamageMultiplierAdditive
649-
650- spell .WaitTravelTime (sim , func (sim * core.Simulation ) {
651-
652- oldMulti := spell .DamageMultiplier
653- oldAdd := spell .DamageMultiplierAdditive
654-
655- // calculate dmg on hit, as the apparations profit from the debuffs on the target
656- // when they reach them
657- // spell and other modifiers are snapshotted when the apparations spawn
658- spell .DamageMultiplier = dmgMulti
659- spell .DamageMultiplierAdditive = dmgMultiAdd
660-
661- result := spell .CalcDamage (sim , target , baseDamage , spell .OutcomeMagicHitAndCrit )
662- spell .DealDamage (sim , result )
663-
664- // restore mods
665- spell .DamageMultiplier = oldMulti
666- spell .DamageMultiplierAdditive = oldAdd
667- })
668- },
669- })
670-
671- core .MakeProcTriggerAura (& priest .Unit , core.ProcTrigger {
672- Name : "Shadowy Apparition Aura" ,
673- Callback : core .CallbackOnPeriodicDamageDealt ,
674- Outcome : core .OutcomeLanded ,
675- ClassSpellMask : PriestSpellShadowWordPain ,
676- Handler : func (sim * core.Simulation , _ * core.Spell , result * core.SpellResult ) {
677- procChance := 0.04 * float64 (priest .Talents .ShadowyApparition )
678- if priest .Moving {
679- procChance *= 5
680- }
681-
682- if sim .Proc (procChance , "Shadowy Apparition Aura" ) {
683- spell .Cast (sim , result .Target )
684- }
685- },
686- })
687- }
688-
689622// func (priest *Priest) applyDivineAegis() {
690623// if priest.Talents.DivineAegis == 0 {
691624// return
0 commit comments