Skip to content

Commit

Permalink
[Gear] Initial Seductive Power stacks option.
Browse files Browse the repository at this point in the history
  • Loading branch information
vituscze committed Jan 5, 2019
1 parent 00f1714 commit b613dd7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions engine/player/azerite_data.cpp
Expand Up @@ -2577,6 +2577,12 @@ void seductive_power( special_effect_t& effect )
effect.custom_buff = buff;

new seductive_power_cb_t( effect );

int initial_stacks = effect.player->sim->bfa_opts.initial_seductive_power_stacks;
if ( initial_stacks > 0 )
{
effect.player->register_combat_begin( [ = ] ( player_t* ) { buff->trigger( initial_stacks ); } );
}
}

void bonded_souls( special_effect_t& effect )
Expand Down
2 changes: 2 additions & 0 deletions engine/sim/sc_sim.cpp
Expand Up @@ -3559,6 +3559,8 @@ void sim_t::create_options()
bfa_opts.reorigination_array_ignore_scale_factors ) );
add_option( opt_float( "bfa.seductive_power_pickup_chance",
bfa_opts.seductive_power_pickup_chance, 0.0, 1.0 ) );
add_option( opt_int( "bfa.initial_seductive_power_stacks",
bfa_opts.initial_seductive_power_stacks, 0, 5 ) );


// applies to: "lavish_suramar_feast", battle for azeroth feasts
Expand Down
2 changes: 2 additions & 0 deletions engine/simulationcraft.hpp
Expand Up @@ -1124,6 +1124,8 @@ struct sim_t : private sc_thread_t
bool reorigination_array_ignore_scale_factors = false;
/// Chance to pick up visage spawned by Seductive Power
double seductive_power_pickup_chance = 1.0;
/// Initial stacks for Seductive Power buff
int initial_seductive_power_stacks = 0;
} bfa_opts;

// Expansion specific data
Expand Down

0 comments on commit b613dd7

Please sign in to comment.