tjc12821

Untitled

Nov 30th, 2017
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.00 KB | None | 0 0
  1.     if ( p() -> sets -> has_set_bonus( WARLOCK_AFFLICTION, T21, B2 ) )
  2.     {
  3.       if ( rng().roll( p() -> sets -> set( WARLOCK_AFFLICTION, T21, B2 ) -> proc_chance() ) )
  4.       {
  5.         // Okay, we got a proc
  6.         warlock_td_t* target_data = td( d -> state -> target );
  7.         for ( int i = 0; i < MAX_UAS; i++ ) {
  8.           if ( target_data -> dots_unstable_affliction[i] -> is_ticking() )
  9.           {
  10.             double added_duration_multiplier = ceil( p()->sets->set( WARLOCK_AFFLICTION, T21, B2 )->effectN( 1 ).time_value() / target_data->dots_unstable_affliction[i]->current_action->tick_time( target_data->dots_unstable_affliction[i]->state ) );
  11.             target_data->dots_unstable_affliction[i]->extend_duration(
  12.               target_data->dots_unstable_affliction[i]->current_action->tick_time( target_data->dots_unstable_affliction[i]->state ) * added_duration_multiplier,
  13.               true
  14.             );
  15.           }
  16.         }
  17.         p()->procs.affliction_t21_2pc->occur();
  18.       }
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment