Skip to content

Commit

Permalink
[Death Knight] Shattering Blade hotfix to count razorice in the bonus
Browse files Browse the repository at this point in the history
  • Loading branch information
Khazakdk committed Sep 24, 2024
1 parent 88a2c0a commit d901f18
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions engine/class_modules/sc_death_knight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8879,10 +8879,12 @@ struct frost_strike_strike_t final : public death_knight_melee_attack_t
double composite_da_multiplier( const action_state_t* state ) const override
{
double m = death_knight_melee_attack_t::composite_da_multiplier( state );
const auto ri = get_td( state->target )->debuff.razorice;

if ( sb )
{
m *= 1.0 + p()->talent.frost.shattering_blade->effectN( 1 ).percent();
m *= 1.0 + ri->default_value * ri->max_stack();
}

return m;
Expand Down Expand Up @@ -8912,14 +8914,9 @@ struct frost_strike_strike_t final : public death_knight_melee_attack_t
if ( weapon_hand->group() == WEAPON_1H )
{
if ( weapon_hand->slot == SLOT_MAIN_HAND )
{
trigger_shattered_frost( s->result_amount,
true /* TODO-TWW check if still bugged p()->off_hand_weapon.type == WEAPON_NONE */ );
}
/*if ( weapon_hand->slot == SLOT_OFF_HAND )
{
trigger_shattered_frost( s->result_amount, true );
}*/
}
}
}

Expand Down

0 comments on commit d901f18

Please sign in to comment.