Skip to content

Commit

Permalink
[Unholy] Fix San'layn Opener in APL
Browse files Browse the repository at this point in the history
  • Loading branch information
nyterage committed Aug 28, 2024
1 parent 90ed28b commit 8bf34d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions engine/class_modules/apl/apl_death_knight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ void unholy( player_t* p )
default_->add_action( "call_action_list,name=aoe_setup,if=active_enemies>=3&!death_and_decay.ticking&cooldown.death_and_decay.remains<10" );
default_->add_action( "call_action_list,name=aoe_burst,if=active_enemies>=3&(death_and_decay.ticking|buff.death_and_decay.up&death_knight.fwounded_targets>=(active_enemies*0.5))" );
default_->add_action( "call_action_list,name=aoe,if=active_enemies>=3&!death_and_decay.ticking" );
default_->add_action( "run_action_list,name=san_fishing,if=active_enemies=1&talent.gift_of_the_sanlayn&!buff.gift_of_the_sanlayn.up&buff.essence_of_the_blood_queen.remains<cooldown.dark_transformation.remains+2" );
default_->add_action( "run_action_list,name=san_fishing,if=active_enemies=1&talent.gift_of_the_sanlayn&!cooldown.dark_transformation.ready&!buff.gift_of_the_sanlayn.up&buff.essence_of_the_blood_queen.remains<cooldown.dark_transformation.remains+2" );
default_->add_action( "call_action_list,name=san_st,if=active_enemies=1&talent.vampiric_strike" );
default_->add_action( "call_action_list,name=st,if=active_enemies=1&!talent.vampiric_strike" );

Expand Down Expand Up @@ -504,7 +504,8 @@ void unholy( player_t* p )
san_fishing->add_action( "wound_spender,if=(debuff.festering_wound.stack>=3-pet.abomination.active&cooldown.apocalypse.remains>variable.apoc_timing)|buff.vampiric_strike.react" );
san_fishing->add_action( "festering_strike,if=debuff.festering_wound.stack<3-pet.abomination.active" );

san_st->add_action( "wound_spender,if=buff.essence_of_the_blood_queen.remains<3&buff.vampiric_strike.react|talent.gift_of_the_sanlayn&buff.dark_transformation.up&buff.dark_transformation.remains<gcd", "Single Target San'layn" );
san_st->add_action( "any_dnd,if=!death_and_decay.ticking&talent.unholy_ground&cooldown.dark_transformation.remains<5", "Single Target San'layn" );
san_st->add_action( "wound_spender,if=buff.essence_of_the_blood_queen.remains<3&buff.vampiric_strike.react|talent.gift_of_the_sanlayn&buff.dark_transformation.up&buff.dark_transformation.remains<gcd" );
san_st->add_action( "death_coil,if=buff.sudden_doom.react&buff.gift_of_the_sanlayn.remains&buff.essence_of_the_blood_queen.stack>=3&(talent.doomed_bidding|talent.rotten_touch)|rune<2&!buff.runic_corruption.up" );
san_st->add_action( "soul_reaper,if=target.health.pct<=35&!buff.gift_of_the_sanlayn.up&fight_remains>5" );
san_st->add_action( "festering_strike,if=(debuff.festering_wound.stack<4&cooldown.apocalypse.remains<variable.apoc_timing)|(talent.gift_of_the_sanlayn&!buff.gift_of_the_sanlayn.up|!talent.gift_of_the_sanlayn)&(buff.festering_scythe.react|debuff.festering_wound.stack<=1-pet.abomination.active)" );
Expand Down
4 changes: 1 addition & 3 deletions engine/player/unique_gear_thewarwithin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4176,9 +4176,7 @@ void excavation( special_effect_t& effect )
for ( const auto& [ id, n ] : buff_entries )
{
auto s_data = e.player->find_spell( id );
double value = 0;

value = e.driver()->effectN( 1 ).average( e ) * ( 1.0 + ( 0.05 * n ) );
double value = e.driver()->effectN( 1 ).average( e ) * ( 1.0 + ( 0.05 * n ) );

auto buff = create_buff<stat_buff_t>( e.player, s_data )->add_stat_from_effect_type( A_MOD_STAT, value );

Expand Down

0 comments on commit 8bf34d1

Please sign in to comment.