Skip to content

Commit

Permalink
[Demon Hunter] Havoc
Browse files Browse the repository at this point in the history
 - Update damage_calc_helper_t to account for chain_multiplier.
  • Loading branch information
aggixx committed Jul 24, 2016
1 parent 7f4d4f6 commit 1dd2b31
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions engine/class_modules/sc_demon_hunter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4573,8 +4573,8 @@ struct damage_calc_helper_t
double cached_amount;
double weapon_damage_multiplier;
double crit_bonus_damage;
double
first_blood; // First Blood talent multiplier, if relevant to the action.
// First Blood talent multiplier, if relevant to the action.
double first_blood;
#ifndef NDEBUG
std::vector<actions::demon_hunter_attack_t*> attacks_;
#endif
Expand Down Expand Up @@ -4712,6 +4712,11 @@ struct damage_calc_helper_t
action -> composite_target_multiplier( t ) *
get_target_crit_modifier( t );

if ( action -> chain_multiplier != 1.0 )
{
m *= pow( action -> chain_multiplier, i );
}

if ( i == 0 )
{
m *= first_blood;
Expand Down

0 comments on commit 1dd2b31

Please sign in to comment.