Skip to content

Commit

Permalink
[Warlock] Odr should not have infinite duration (simulationcraft#5529)
Browse files Browse the repository at this point in the history
  • Loading branch information
Azevara authored Nov 15, 2020
1 parent 7b80c53 commit ec80966
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engine/class_modules/warlock/sc_warlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,10 @@ warlock_td_t::warlock_td_t( player_t* target, warlock_t& p )
->set_cooldown( 0_ms )
->set_stack_change_callback( [ &p ]( buff_t* b, int, int cur ) {
if ( cur == 0 )
{
p.get_target_data( p.havoc_target )->debuffs_odr->cancel();
p.havoc_target = nullptr;
}
else
p.havoc_target = b->player;

Expand Down

0 comments on commit ec80966

Please sign in to comment.