Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- engine/class_modules/sc_death_knight.cpp | 26 +++++++++++++++++++++++++-
- 1 file changed, 25 insertions(+), 1 deletion(-)
- diff --git a/engine/class_modules/sc_death_knight.cpp b/engine/class_modules/sc_death_knight.cpp
- index 67e1258..f094904 100644
- --- a/engine/class_modules/sc_death_knight.cpp
- +++ b/engine/class_modules/sc_death_knight.cpp
- @@ -534,6 +534,12 @@ public:
- proc_t* km_natural_expiration;
- } procs;
- + struct legendary_t{
- + // Frost
- + double toravons;
- +
- + } legendary;
- +
- // Runes
- runes_t _runes;
- @@ -6529,7 +6535,8 @@ void death_knight_t::create_buffs()
- .cd( timespan_t::zero() )
- .default_value( find_class_spell( "Pillar of Frost" ) -> effectN( 1 ).percent() )
- .add_invalidate( CACHE_STRENGTH )
- - .add_invalidate( artifact.frozen_core.rank() ? CACHE_PLAYER_DAMAGE_MULTIPLIER : CACHE_NONE );
- + .add_invalidate( artifact.frozen_core.rank() ? CACHE_PLAYER_DAMAGE_MULTIPLIER : CACHE_NONE )
- + .add_invalidate( legendary.toravons ? CACHE_PLAYER_DAMAGE_MULTIPLIER : CACHE_NONE);
- buffs.rime = buff_creator_t( this, "rime", spec.rime -> effectN( 1 ).trigger() )
- .trigger_spell( spec.rime );
- buffs.riposte = stat_buff_creator_t( this, "riposte", spec.riposte -> effectN( 1 ).trigger() )
- @@ -6981,6 +6988,11 @@ double death_knight_t::composite_player_multiplier( school_e school ) const
- m *= 1.0 + buffs.t18_4pc_unholy -> data().effectN( 2 ).percent();
- }
- + if (buffs.pillar_of_frost->check() && dbc::is_school(school, SCHOOL_FROST))
- + {
- + m *= 1.0 + legendary.toravons;
- + }
- +
- return m;
- }
- @@ -7397,6 +7409,18 @@ struct reapers_harvest_blood_t : public scoped_action_callback_t<marrowrend_t>
- }
- };
- +struct toravons_bindings_t : public scoped_actor_callback_t < death_knight_t >
- +{
- + toravons_bindings_t() : super(DEATH_KNIGHT_FROST)
- + {}
- +
- + void manipulate(death_knight_t* p, const special_effect_t& e) override
- + {
- + p->legendary.toravons = e.driver()->effectN(1).percent();
- + }
- +};
- +
- +
- struct taktheritrixs_shoulderpads_t : public scoped_actor_callback_t<death_knight_t>
- {
- taktheritrixs_shoulderpads_t() : super( DEATH_KNIGHT_UNHOLY )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement