aggixx

Untitled

Jan 19th, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.32 KB | None | 0 0
  1.   virtual void execute()
  2.   {
  3.     int combo_points = td( target ) -> combo_points.get();
  4.  
  5.     base_dd_adder = base_da_bonus * combo_points;
  6.     base_ta_adder = base_ta_bonus * combo_points;
  7.  
  8.     base_t::execute();
  9.  
  10.     if ( result_is_hit( execute_state -> result ) )
  11.     {
  12.       if ( adds_combo_points )
  13.       {
  14.         td( target ) -> combo_points.add( adds_combo_points, &name_str );
  15.  
  16.         if ( aoe == 0 && ( p() -> specialization() == DRUID_FERAL || p() -> specialization() == DRUID_GUARDIAN ) &&
  17.              execute_state -> result == RESULT_CRIT )
  18.         {
  19.           p() -> proc.primal_fury -> occur();
  20.           td( target ) -> combo_points.add( adds_combo_points, &name_str );
  21.         }
  22.       }
  23.  
  24.       if ( execute_state -> result == RESULT_CRIT )
  25.         trigger_lotp( execute_state );
  26.  
  27.       druid_td_t& td = *this -> td( execute_state -> target );
  28.       if ( td.combo_points.get() > 0 && requires_combo_points )
  29.       {
  30.         if ( player -> set_bonus.tier15_2pc_melee() &&
  31.           p() -> rng.tier15_2pc_melee -> roll( td.combo_points.get() * 0.15 ))
  32.         {
  33.           p() -> proc.tier15_2pc_melee -> occur();
  34.           td.combo_points.add( 1, &name_str );
  35.         }
  36.       }
  37.     }
  38.     else
  39.     {
  40.       trigger_energy_refund();
  41.     }
  42.  
  43.     if ( harmful ) p() -> buff.stealthed -> expire();
  44.   }
Advertisement
Add Comment
Please, Sign In to add comment