Skip to content

Commit 0a022ac

Browse files
committed
[Priest] clean up more old code
1 parent bcc0e42 commit 0a022ac

File tree

5 files changed

+6
-132
lines changed

5 files changed

+6
-132
lines changed

engine/class_modules/priest/sc_priest.cpp

Lines changed: 6 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,6 @@ struct mind_blast_base_t : public priest_spell_t
161161
{
162162
priest().trigger_entropic_rift();
163163
}
164-
165-
priest().buffs.darkness_from_light->expire();
166164
}
167165

168166
bool insidious_ire_active() const
@@ -391,7 +389,7 @@ struct halo_spell_t final : public priest_spell_t
391389
{
392390
aoe = -1;
393391
background = true;
394-
radius = data().max_range() + p.talents.archon.power_surge->effectN( 1 ).base_value();
392+
radius = data().max_range();
395393
range = 0;
396394
travel_speed =
397395
radius / 2; // These do not seem to match up to the animation, which would be 2.5s. TODO: Check later
@@ -471,7 +469,7 @@ struct halo_heal_t final : public priest_heal_t
471469
{
472470
aoe = -1;
473471
background = true;
474-
radius = data().max_range() + p.talents.archon.power_surge->effectN( 1 ).base_value();
472+
radius = data().max_range();
475473
range = 0;
476474
travel_speed =
477475
radius / 2; // These do not seem to match up to the animation, which would be 2.5s. TODO: Check later
@@ -714,14 +712,12 @@ struct power_word_fortitude_t final : public priest_spell_t
714712
// ==========================================================================
715713
struct smite_base_t : public priest_spell_t
716714
{
717-
timespan_t t31_2pc_extend;
718715
timespan_t divine_procession_extend;
719716
action_t* child_searing_light;
720717

721718
smite_base_t( priest_t& p, util::string_view name, const spell_data_t* s, bool bg = false,
722719
util::string_view options_str = {} )
723720
: priest_spell_t( name, p, s ),
724-
t31_2pc_extend( priest().sets->set( PRIEST_DISCIPLINE, T31, B2 )->effectN( 1 ).time_value() ),
725721
divine_procession_extend( priest().talents.discipline.divine_procession->effectN( 1 ).time_value() ),
726722
child_searing_light( priest().background_actions.searing_light )
727723

@@ -757,9 +753,6 @@ struct smite_base_t : public priest_spell_t
757753
if ( priest().talents.surge_of_light.enabled() )
758754
priest().buffs.surge_of_light->trigger();
759755

760-
if ( p().sets->has_set_bonus( PRIEST_DISCIPLINE, TWW1, B4 ) )
761-
priest().buffs.darkness_from_light->trigger();
762-
763756
if ( priest().talents.holy.holy_word_chastise.enabled() )
764757
{
765758
timespan_t chastise_cdr =
@@ -775,28 +768,6 @@ struct smite_base_t : public priest_spell_t
775768

776769
if ( result_is_hit( s->result ) )
777770
{
778-
if ( priest().sets->has_set_bonus( PRIEST_DISCIPLINE, T31, B2 ) )
779-
{
780-
if ( p().allies_with_atonement.size() > 0 )
781-
{
782-
/*auto it = *( std::min_element( p().allies_with_atonement.begin(), p().allies_with_atonement.end(),
783-
[ this ]( player_t* a, player_t* b ) {
784-
return a->health_percentage() < b->health_percentage() &&
785-
priest().find_target_data( b )->buffs.atonement->remains() < 30_s;
786-
} ) );*/
787-
788-
auto idx = rng().range( 0U, as<unsigned>( p().allies_with_atonement.size() ) );
789-
790-
auto it = p().allies_with_atonement[ idx ];
791-
792-
auto atone = priest().find_target_data( it )->buffs.atonement;
793-
if ( atone->remains() < 30_s )
794-
{
795-
atone->extend_duration( player, t31_2pc_extend );
796-
}
797-
}
798-
}
799-
800771
if ( priest().talents.discipline.divine_procession.enabled() )
801772
{
802773
if ( p().allies_with_atonement.size() > 0 )
@@ -833,11 +804,6 @@ struct smite_t final : public smite_base_t
833804
smite_t( priest_t& p, util::string_view options_str )
834805
: smite_base_t( p, "smite", p.find_class_spell( "Smite" ), false, options_str ), shadow_smite( nullptr )
835806
{
836-
if ( p.sets->has_set_bonus( PRIEST_DISCIPLINE, T31, B4 ) )
837-
{
838-
shadow_smite = new smite_base_t( p, "smite_t31", priest().specs.smite_t31, true );
839-
add_child( shadow_smite );
840-
}
841807
}
842808

843809
void impact( action_state_t* s ) override
@@ -921,22 +887,8 @@ struct power_infusion_t final : public priest_spell_t
921887
// Trigger PI on the actor only if casting on itself
922888
if ( priest().options.self_power_infusion || priest().talents.twins_of_the_sun_priestess.enabled() )
923889
{
924-
bool tww2_4pc = priest().sets->has_set_bonus( PRIEST_SHADOW, TWW2, B4 );
925-
if ( tww2_4pc && player->buffs.power_infusion->check() )
926-
{
927-
timespan_t extend_amount =
928-
std::min( player->buffs.power_infusion->buff_duration(), 30_s - player->buffs.power_infusion->remains() );
929-
if ( extend_amount > 0_s )
930-
player->buffs.power_infusion->extend_duration( player, extend_amount );
931-
932-
player->buffs.power_infusion->current_value = power_infusion_magnitude;
933-
player->buffs.power_infusion->invalidate_cache();
934-
}
935-
else
936-
{
937-
player->buffs.power_infusion->trigger( 1, power_infusion_magnitude, -1,
938-
player->buffs.power_infusion->buff_duration() );
939-
}
890+
player->buffs.power_infusion->trigger( 1, power_infusion_magnitude, -1,
891+
player->buffs.power_infusion->buff_duration() );
940892
}
941893
}
942894
};
@@ -1947,12 +1899,6 @@ struct power_word_shield_t final : public priest_absorb_t
19471899
m *= 1 + priest().buffs.weal_and_woe->data().effectN( 2 ).percent() * priest().buffs.weal_and_woe->check();
19481900
}
19491901

1950-
if ( priest().buffs.darkness_from_light->check() )
1951-
{
1952-
m *= 1 + priest().buffs.darkness_from_light->data().effectN( 2 ).percent() *
1953-
priest().buffs.darkness_from_light->check();
1954-
}
1955-
19561902
return m;
19571903
}
19581904

@@ -1970,11 +1916,6 @@ struct power_word_shield_t final : public priest_absorb_t
19701916

19711917
priest_absorb_t::execute();
19721918

1973-
if ( priest().buffs.darkness_from_light->check() )
1974-
{
1975-
priest().buffs.darkness_from_light->expire();
1976-
}
1977-
19781919
priest().buffs.weal_and_woe->expire();
19791920
}
19801921

@@ -1992,11 +1933,6 @@ struct power_word_shield_t final : public priest_absorb_t
19921933
priest_td_t& td = get_td( s->target );
19931934
td.buffs.atonement->trigger( atonement_duration );
19941935
}
1995-
1996-
if ( priest().sets->has_set_bonus( PRIEST_DISCIPLINE, T29, B2 ) )
1997-
{
1998-
priest().buffs.light_weaving->trigger();
1999-
}
20001936
}
20011937
};
20021938

@@ -2638,12 +2574,6 @@ double priest_t::composite_player_pet_damage_multiplier( const action_state_t* s
26382574
{
26392575
double m = player_t::composite_player_pet_damage_multiplier( s, guardian );
26402576

2641-
// TWW1 Set Bonus for pet spells, this double dips with pet spells
2642-
if ( buffs.devouring_chorus->check() )
2643-
{
2644-
m *= ( 1.0 + buffs.devouring_chorus->check_stack_value() );
2645-
}
2646-
26472577
return m;
26482578
}
26492579

@@ -2837,10 +2767,6 @@ action_t* priest_t::create_action( util::string_view name, util::string_view opt
28372767
{
28382768
return new flash_heal_t( *this, options_str );
28392769
}
2840-
if ( name == "renew" )
2841-
{
2842-
return new renew_t( *this, options_str );
2843-
}
28442770
if ( name == "void_blast" )
28452771
{
28462772
if ( specialization() == PRIEST_SHADOW )
@@ -3086,8 +3012,8 @@ void priest_t::init_spells()
30863012
talents.purify_disease = CT( "Purify Disease" ); // NYI
30873013
talents.power_infusion = CT( "Power Infusion" );
30883014
talents.painful_invocation = CT( "Painful Invocation" );
3089-
talents.sheer_terror = CT( "Sheer Terror" ); // NYI
3090-
talents.petrifying_scream = CT( "Petrifying Scream" ); // NYI
3015+
talents.sheer_terror = CT( "Sheer Terror" ); // NYI
3016+
talents.petrifying_scream = CT( "Petrifying Scream" ); // NYI
30913017
// Row 4
30923018
talents.surge_of_light = CT( "Surge of Light" );
30933019
talents.surge_of_light_buff = find_spell( 114255 );
@@ -3908,7 +3834,6 @@ void priest_t::create_options()
39083834
opt_float( "priest.crystalline_reflection_damage_mult", options.crystalline_reflection_damage_mult, 0.0, 1.0 ) );
39093835
add_option( opt_bool( "priest.no_channel_macro_mfi", options.no_channel_macro_mfi ) );
39103836
add_option( opt_bool( "priest.discipline_in_raid", options.discipline_in_raid ) );
3911-
add_option( opt_bool( "priest.shadow_tww2_4pc_insanity", options.shadow_tww2_4pc_insanity ) );
39123837
add_option( opt_float( "priest.synergistic_brewterializer_tof_chance", options.synergistic_brewterializer_tof_chance,
39133838
0.0, 1.0 ) );
39143839
add_option( opt_float( "priest.synergistic_brewterializer_barrel_hit_chance",

engine/class_modules/priest/sc_priest.hpp

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,6 @@ struct priest_t final : public player_t
221221
propagate_const<buff_t*> vision_of_nzoth;
222222

223223
// Tier Sets
224-
propagate_const<buff_t*> light_weaving;
225-
propagate_const<buff_t*> devouring_chorus;
226-
propagate_const<buff_t*> darkness_from_light;
227224
propagate_const<buff_t*> ascension; // TWW3 Archon Set 2pc
228225
propagate_const<buff_t*> tww3_archon_4pc; // TWW3 Archon Set 4pc helper
229226
propagate_const<buff_t*> overflowing_void; // TWW3 VW Set 4pc
@@ -617,7 +614,6 @@ struct priest_t final : public player_t
617614
const spell_data_t* penance;
618615
const spell_data_t* penance_channel;
619616
const spell_data_t* penance_tick;
620-
const spell_data_t* smite_t31;
621617

622618
// Holy
623619
const spell_data_t* holy_priest; // General holy data
@@ -867,8 +863,6 @@ struct priest_t final : public player_t
867863
// Controls whether Discipline is "in a raid" or not.
868864
bool discipline_in_raid = false;
869865

870-
bool shadow_tww2_4pc_insanity = true;
871-
872866
// 30% Chance that a Fire Mage steals the proc because you are slow or you just dont hit it or it just bugs out.
873867
double synergistic_brewterializer_tof_chance = 0.7;
874868
// ~20% damage penalty to account for GCD. ~10% Miss general chance.
@@ -1176,31 +1170,12 @@ struct priest_action_t : public parse_action_effects_t<Base>
11761170

11771171
// Buffs non-periodic spells
11781172
parse_effects( p().buffs.screams_of_the_void );
1179-
1180-
if ( p().sets->has_set_bonus( PRIEST_SHADOW, TWW1, B4 ) )
1181-
{
1182-
parse_effects( p().buffs.devouring_chorus );
1183-
}
1184-
1185-
if ( p().sets->has_set_bonus( PRIEST_SHADOW, TWW2, B4 ) )
1186-
{
1187-
parse_effects( ab::player->buffs.power_infusion,
1188-
p().sets->set( PRIEST_SHADOW, TWW2, B4 )->effectN( 2 ).percent() );
1189-
}
11901173
}
11911174

11921175
// DISCIPLINE BUFF EFFECTS
11931176
if ( p().specialization() == PRIEST_DISCIPLINE )
11941177
{
1195-
// 280398 applies the buff to the correct spells, but does not contain the correct buff value
1196-
// (12% instead of 40%) So, override to use our provided default_value (40%) instead
1197-
parse_effects( p().buffs.light_weaving );
11981178
parse_effects( p().buffs.weal_and_woe );
1199-
1200-
if ( p().sets->has_set_bonus( PRIEST_DISCIPLINE, TWW1, B4 ) )
1201-
{
1202-
parse_effects( p().buffs.darkness_from_light );
1203-
}
12041179
}
12051180

12061181
// HOLY BUFF EFFECTS

engine/class_modules/priest/sc_priest_discipline.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -563,9 +563,6 @@ struct penance_base_t : public priest_spell_t
563563
priest().buffs.power_of_the_dark_side->expire();
564564

565565
priest().buffs.harsh_discipline->decrement();
566-
567-
if ( p().sets->has_set_bonus( PRIEST_DISCIPLINE, TWW1, B4 ) )
568-
priest().buffs.darkness_from_light->trigger();
569566
}
570567

571568
void impact( action_state_t* state ) override
@@ -701,11 +698,6 @@ void priest_t::create_buffs_discipline()
701698
}
702699

703700
buffs.weal_and_woe = make_buff( this, "weal_and_woe", talents.discipline.weal_and_woe_buff );
704-
705-
// Discipline T29 2-piece bonus
706-
buffs.light_weaving = make_buff( this, "light_weaving", find_spell( 394609 ) );
707-
708-
buffs.darkness_from_light = make_buff( this, "darkness_from_light", find_spell( 455033 ) );
709701
}
710702

711703
void priest_t::init_rng_discipline()
@@ -788,7 +780,6 @@ void priest_t::init_spells_discipline()
788780
specs.penance = find_spell( 47540 );
789781
specs.penance_channel = find_spell( 47758 ); // Channel spell, triggered by 47540, executes 47666 every tick
790782
specs.penance_tick = find_spell( 47666 ); // Not triggered from 47540, only 47758
791-
specs.smite_t31 = find_spell( 425529 ); // T31 Shadow Smite
792783
}
793784

794785
action_t* priest_t::create_action_discipline( util::string_view name, util::string_view options_str )

engine/class_modules/priest/sc_priest_pets.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,6 @@ struct priest_pet_spell_t : public parse_action_effects_t<spell_t>
290290
parse_effects( p().o().buffs.voidform, effect_mask_t( true ).disable( 3 ), IGNORE_STACKS ); // Skip E3 for AM
291291
parse_effects( p().o().buffs.shadowform );
292292
}
293-
294-
if ( p().o().sets->has_set_bonus( PRIEST_SHADOW, TWW1, B4 ) )
295-
{
296-
parse_effects( p().o().buffs.devouring_chorus );
297-
}
298293
}
299294
void apply_debuffs_effects()
300295
{

engine/class_modules/priest/sc_priest_shadow.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -808,11 +808,6 @@ struct shadow_word_madness_t final : public priest_spell_t
808808
{
809809
priest().buffs.mind_devourer->decrement();
810810
}
811-
812-
if ( priest().sets->has_set_bonus( PRIEST_SHADOW, TWW1, B4 ) )
813-
{
814-
priest().buffs.devouring_chorus->trigger();
815-
}
816811
}
817812

818813
void impact( action_state_t* s ) override
@@ -1921,13 +1916,6 @@ void priest_t::create_buffs_shadow()
19211916
buffs.death_and_madness_reset =
19221917
make_buff( this, "death_and_madness_reset", talents.shadow.death_and_madness_reset_buff )
19231918
->set_trigger_spell( talents.shadow.death_and_madness );
1924-
1925-
// Tier Sets
1926-
buffs.devouring_chorus = make_buff_fallback( sets->has_set_bonus( PRIEST_SHADOW, TWW1, B4 ), this, "devouring_chorus",
1927-
sets->set( PRIEST_SHADOW, TWW1, B4 )->effectN( 1 ).trigger() )
1928-
->set_stack_behavior( buff_stack_behavior::ASYNCHRONOUS )
1929-
->set_default_value_from_effect( 1 );
1930-
19311919
} // namespace priestspace
19321920

19331921
void priest_t::init_rng_shadow()

0 commit comments

Comments
 (0)