Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( p() -> sets -> has_set_bonus( WARLOCK_AFFLICTION, T21, B2 ) )
- {
- if ( rng().roll( p() -> sets -> set( WARLOCK_AFFLICTION, T21, B2 ) -> proc_chance() ) )
- {
- // Okay, we got a proc
- warlock_td_t* target_data = td( d -> state -> target );
- for ( int i = 0; i < MAX_UAS; i++ ) {
- if ( target_data -> dots_unstable_affliction[i] -> is_ticking() )
- {
- 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 ) );
- target_data->dots_unstable_affliction[i]->extend_duration(
- target_data->dots_unstable_affliction[i]->current_action->tick_time( target_data->dots_unstable_affliction[i]->state ) * added_duration_multiplier,
- true
- );
- }
- }
- p()->procs.affliction_t21_2pc->occur();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment