Skip to content

Commit

Permalink
[shaman] T30 fix 2p bonus trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Bloodmallet committed Apr 5, 2023
1 parent fe577a7 commit 26c65af
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions engine/class_modules/sc_shaman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9992,17 +9992,16 @@ void shaman_t::create_buffs()
buff.t30_2pc_ele_driver = make_buff( this, "t30_2pc_ele_driver", spell.t30_2pc_ele )
->set_tick_callback( [ this ]( buff_t* /* b */, int, timespan_t ) {
// spell data says "40", but means 40s

timespan_t next_proc = last_t30_proc + spell.t30_2pc_ele->effectN( 1 ).time_value() * 1000;
if ( next_proc > sim->current_time() && !t30_proc_possible )
if ( next_proc <= sim->current_time() && !t30_proc_possible )
{
t30_proc_possible = true;
last_t30_proc = sim->current_time();
}
if ( t30_proc_possible && !buff.stormkeeper->up() )
{
buff.stormkeeper->trigger( 2 );
t30_proc_possible = false;
buff.stormkeeper->trigger( 2 );
t30_proc_possible = false;
}
} );
buff.t30_4pc_ele = make_buff( this, "primal_fracture", spell.t30_4pc_ele );
Expand Down

0 comments on commit 26c65af

Please sign in to comment.