Skip to content

Commit

Permalink
[Gear] Set a target for deflectors
Browse files Browse the repository at this point in the history
  • Loading branch information
Melekus committed Mar 3, 2020
1 parent 48106e4 commit 259425e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engine/player/sc_unique_gear_x7.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5598,6 +5598,7 @@ void items::anodized_deflectors( special_effect_t& effect )
-> add_stat( STAT_AVOIDANCE_RATING, effect.driver() -> effectN( 2 ).average( effect.item ) )
-> set_stack_change_callback( [ damage ]( buff_t*, int, int new_ ) {
if ( new_ == 0 )
damage -> set_target( damage -> player -> target );
damage -> execute();
} );
}
Expand Down

0 comments on commit 259425e

Please sign in to comment.