Skip to content

[Havoc] fix winning streaks getting eaten #10317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions engine/class_modules/sc_demon_hunter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7152,24 +7152,22 @@ struct metamorphosis_buff_t : public demon_hunter_buff_t<buff_t>
if ( p()->set_bonuses.tww2_havoc_4pc->ok() &&
( p()->buff.winning_streak->up() || p()->buff.winning_streak_residual->up() ) )
{
event_t::cancel( p()->winning_streak_conversion_event );
// 2025-02-08 -- Necessary Sacrifice will not be triggered if the number of stacks on Winning Streak! is less than
// the number of stacks on Necessary Sacrifice

int winning_streak_stacks = p()->buff.winning_streak->stack() + p()->buff.winning_streak_residual->stack();
int necessary_sacrifice_stacks = p()->buff.necessary_sacrifice->stack();

p()->buff.winning_streak->expire();
p()->buff.winning_streak_residual->expire();

if ( winning_streak_stacks >= necessary_sacrifice_stacks )
{
event_t::cancel( p()->winning_streak_conversion_event );
p()->buff.winning_streak->expire();
p()->buff.winning_streak_residual->expire();
p()->buff.necessary_sacrifice->expire();
p()->buff.necessary_sacrifice->trigger( winning_streak_stacks );
}
else
{
p()->proc.winning_streak_wasted_from_tww2_havoc_4pc->occur();
p()->proc.necessary_sacrifice_wasted_from_tww2_havoc_4pc->occur();
}
}
Expand Down