Skip to content

Commit

Permalink
[Gear] darkmoon ascension expires naturally out of combat
Browse files Browse the repository at this point in the history
  • Loading branch information
gastank committed Sep 17, 2024
1 parent 50ca157 commit d5dde66
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions engine/player/unique_gear_thewarwithin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3577,11 +3577,9 @@ void darkmoon_deck_ascension( special_effect_t& effect )
{
add_stats( e, embellish );
last_buff = buff_list[ 0 ];
// refreshes if in combat on tick, otherwise buff expires naturally
set_tick_callback( [ & ]( buff_t*, int, timespan_t ) {
// Checks on tick if player is in combat, if not, expire the buff
if ( !in_combat )
make_event( *e.player->sim, 0_ms, [ & ] { expire(); } );
else
if ( in_combat )
trigger_ascension();
} );
}
Expand Down

0 comments on commit d5dde66

Please sign in to comment.