aggixx

Untitled

Feb 24th, 2016
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.69 KB | None | 0 0
  1.   virtual void trigger_natures_balance( action_state_t* s, dot_t* d )
  2.   {
  3.     if ( ! p() -> talent.natures_balance -> ok() )
  4.       return;
  5.     if ( ! result_is_hit( s -> result ) )
  6.       return;
  7.  
  8.     timespan_t extension;
  9.  
  10.     if ( d == td( d -> target ) -> dots.moonfire )
  11.       extension = timespan_t::from_seconds( p() -> talent.natures_balance -> effectN( 1 ).base_value() );
  12.     else if ( d == td( d -> target ) -> dots.sunfire )
  13.       extension = timespan_t::from_seconds( p() -> talent.natures_balance -> effectN( 2 ).base_value() );
  14.    
  15.     // Nature's Balance may only extend the DoT to 20 seconds remaining.
  16.     d -> extend_duration( extension, timespan_t::from_seconds( 20.0 ) );
  17.   }
Advertisement
Add Comment
Please, Sign In to add comment