Skip to content

Commit

Permalink
[Gear] Nerubian Phearomone Secreter, use ref in lambda capture
Browse files Browse the repository at this point in the history
  • Loading branch information
nyterage committed Aug 25, 2024
1 parent 28e5c01 commit 739e9e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/player/unique_gear_thewarwithin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3591,7 +3591,7 @@ void nerubian_phearomone_secreter( special_effect_t& effect )
orb = create_buff<buff_t>( e.player, e.player->find_spell( 441430 ) )
->set_max_stack( e.player->thewarwithin_opts.nerubian_phearomone_secreter_phearomones )
->set_duration( e.player->find_spell( 441430 )->duration() )
->set_initial_stack( orb->max_stack() )
->set_initial_stack( e.player->thewarwithin_opts.nerubian_phearomone_secreter_phearomones )
->set_quiet( true )
->set_expire_callback( [ & ]( buff_t*, int, timespan_t d ) {
if ( d > 0_ms )
Expand Down Expand Up @@ -3619,7 +3619,7 @@ void nerubian_phearomone_secreter( special_effect_t& effect )
for ( int i = 0; i < listener->thewarwithin_opts.nerubian_phearomone_secreter_phearomones; i++ )
{
make_event( *listener->sim, rng().range( 200_ms, listener->find_spell( 441430 )->duration() ),
[ this ] { stat_buff->trigger(); } );
[ & ] { stat_buff->trigger(); } );
}
}
}
Expand Down

0 comments on commit 739e9e0

Please sign in to comment.